SCI/newgui: fill screen with white instead of black before picture drawing, fixes some pixels of some screens

svn-id: r45481
This commit is contained in:
Martin Kiewitz 2009-10-28 19:28:43 +00:00
parent 5f71650520
commit 142d2e73c0
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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))