diff options
author | Martin Kiewitz | 2009-10-28 19:28:43 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-28 19:28:43 +0000 |
commit | 142d2e73c02851783d5fc1c4836477d93612e595 (patch) | |
tree | ea0eb496222b372cef665838e4fa4d51f7dcbe39 /engines/sci | |
parent | 5f71650520b81ec5f83191a8726ddfe577e72184 (diff) | |
download | scummvm-rg350-142d2e73c02851783d5fc1c4836477d93612e595.tar.gz scummvm-rg350-142d2e73c02851783d5fc1c4836477d93612e595.tar.bz2 scummvm-rg350-142d2e73c02851783d5fc1c4836477d93612e595.zip |
SCI/newgui: fill screen with white instead of black before picture drawing, fixes some pixels of some screens
svn-id: r45481
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 2 | ||||
-rw-r--r-- | engines/sci/gui/gui_picture.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 36df1492b1..e44a44a819 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -303,7 +303,7 @@ void SciGuiGfx::drawPicture(GuiResourceId pictureId, int16 animationNr, bool mir // do we add to a picture? if not -> clear screen if (!addToFlag) { if (_s->resMan->isVGA()) - ClearScreen(0); + ClearScreen(255); else ClearScreen(15); } diff --git a/engines/sci/gui/gui_picture.cpp b/engines/sci/gui/gui_picture.cpp index e654b4db7c..75892b7574 100644 --- a/engines/sci/gui/gui_picture.cpp +++ b/engines/sci/gui/gui_picture.cpp @@ -605,7 +605,7 @@ void SciGuiPicture::vectorFloodFill(int16 x, int16 y, byte color, byte priority, // This logic was taken directly from sierra sci, floodfill will get aborted on various occations if (screenMask & SCI_SCREEN_MASK_VISUAL) { if (_resMan->isVGA()) { - if ((color == 255) || (searchColor != 0)) + if ((color == 255) || (searchColor != 255)) return; } else { if ((color == 15) || (searchColor != 15)) |