From 142d2e73c02851783d5fc1c4836477d93612e595 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 28 Oct 2009 19:28:43 +0000 Subject: SCI/newgui: fill screen with white instead of black before picture drawing, fixes some pixels of some screens svn-id: r45481 --- engines/sci/gui/gui_gfx.cpp | 2 +- engines/sci/gui/gui_picture.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci') 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)) -- cgit v1.2.3