diff options
author | Martin Kiewitz | 2009-10-13 06:52:31 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-13 06:52:31 +0000 |
commit | aea23b47149a2d92b52f1e1ea55c660719805518 (patch) | |
tree | 1f2ffde5dc13c9878f0b13f5da4c1f9633b99bb0 /engines/sci/gui | |
parent | baec8c2421c30ebee00c0e0e97de8beba3a9fc2a (diff) | |
download | scummvm-rg350-aea23b47149a2d92b52f1e1ea55c660719805518.tar.gz scummvm-rg350-aea23b47149a2d92b52f1e1ea55c660719805518.tar.bz2 scummvm-rg350-aea23b47149a2d92b52f1e1ea55c660719805518.zip |
SCI/newgui: fix floodfill for qfg1ega pictures
svn-id: r45003
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui_picture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/gui/gui_picture.cpp b/engines/sci/gui/gui_picture.cpp index fcfb507f30..26e61eb758 100644 --- a/engines/sci/gui/gui_picture.cpp +++ b/engines/sci/gui/gui_picture.cpp @@ -580,6 +580,10 @@ void SciGuiPicture::vectorFloodFill(int16 x, int16 y, byte color, byte priority, byte searchPriority = _screen->getPriority(p.x, p.y); byte searchControl = _screen->getControl(p.x, p.y); int16 w, e, a_set, b_set; + // It seems as if fills on visual screen, where color is not "initial" will not get done at all + // this fixes pictures in qfg1(ega) + if (screenMask & SCI_SCREEN_MASK_VISUAL && searchColor != 15) + screenMask ^= SCI_SCREEN_MASK_VISUAL; // if in 1st point priority,control or color is already set to target, clear the flag if (screenMask & SCI_SCREEN_MASK_VISUAL && searchColor == color) screenMask ^= SCI_SCREEN_MASK_VISUAL; |