diff options
author | Martin Kiewitz | 2010-01-09 14:09:45 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-09 14:09:45 +0000 |
commit | a815d0e12a42b8880b5f629d6053f96139a46acc (patch) | |
tree | 070c14af7b0fac7732e24258b4d10e625dfc881f /engines/sci/graphics/picture.cpp | |
parent | 5d4ff2930bee11dfef21c66009245d144db5d205 (diff) | |
download | scummvm-rg350-a815d0e12a42b8880b5f629d6053f96139a46acc.tar.gz scummvm-rg350-a815d0e12a42b8880b5f629d6053f96139a46acc.tar.bz2 scummvm-rg350-a815d0e12a42b8880b5f629d6053f96139a46acc.zip |
SCI: added new debug command "picture_visualize", which enables visualization of the drawing process of EGA pictures
svn-id: r47201
Diffstat (limited to 'engines/sci/graphics/picture.cpp')
-rw-r--r-- | engines/sci/graphics/picture.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/graphics/picture.cpp b/engines/sci/graphics/picture.cpp index d7d7fa63d6..4dfa80ee11 100644 --- a/engines/sci/graphics/picture.cpp +++ b/engines/sci/graphics/picture.cpp @@ -33,8 +33,8 @@ namespace Sci { -SciGuiPicture::SciGuiPicture(ResourceManager *resMan, Gfx *gfx, Screen *screen, SciPalette *palette, GuiResourceId resourceId) - : _resMan(resMan), _gfx(gfx), _screen(screen), _palette(palette), _resourceId(resourceId) { +SciGuiPicture::SciGuiPicture(ResourceManager *resMan, Gfx *gfx, Screen *screen, SciPalette *palette, GuiResourceId resourceId, bool EGAdrawingVisualize) + : _resMan(resMan), _gfx(gfx), _screen(screen), _palette(palette), _resourceId(resourceId), _EGAdrawingVisualize(EGAdrawingVisualize) { assert(resourceId != -1); initData(resourceId); } @@ -589,11 +589,11 @@ void SciGuiPicture::drawVectorData(byte *data, int dataSize) { default: error("Unsupported pic-operation %X", pic_op); } - //printf("picop %X\n", pic_op); - // for debug purposes - //_screen->copyToScreen(); - //g_system->updateScreen(); - //g_system->delayMillis(500); + if ((_EGAdrawingVisualize) && (isEGA)) { + _screen->copyToScreen(); + g_system->updateScreen(); + g_system->delayMillis(10); + } } error("picture vector data without terminator"); } |