[Scummvm-cvs-logs] SF.net SVN: scummvm:[45003] scummvm/trunk/engines/sci/gui/gui_picture.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Tue Oct 13 08:52:31 CEST 2009


Revision: 45003
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45003&view=rev
Author:   m_kiewitz
Date:     2009-10-13 06:52:31 +0000 (Tue, 13 Oct 2009)

Log Message:
-----------
SCI/newgui: fix floodfill for qfg1ega pictures

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui_picture.cpp

Modified: scummvm/trunk/engines/sci/gui/gui_picture.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_picture.cpp	2009-10-13 05:38:45 UTC (rev 45002)
+++ scummvm/trunk/engines/sci/gui/gui_picture.cpp	2009-10-13 06:52:31 UTC (rev 45003)
@@ -580,6 +580,10 @@
 	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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list