Moved the cel count calculation to the new graphics code

svn-id: r45379
This commit is contained in:
Filippos Karapetis 2009-10-25 22:33:08 +00:00
parent 1a4b617398
commit b5feeb60b6
6 changed files with 21 additions and 44 deletions

View file

@ -1077,9 +1077,9 @@ bool Console::cmdViewInfo(int argc, const char **argv) {
DebugPrintf("has %d loops:\n", loops);
for (i = 0; i < loops; i++) {
int j, cels;
int j, cels = _vm->_gamestate->_gui->getCelCount(view, i);
DebugPrintf("Loop %d: %d cels.\n", i, cels = gfxop_lookup_view_get_cels(_vm->_gamestate->gfx_state, view, i));
DebugPrintf("Loop %d: %d cels.\n", i, cels);
for (j = 0; j < cels; j++) {
int width;
int height;