[Scummvm-cvs-logs] SF.net SVN: scummvm:[39274] scummvm/trunk/engines/sci/engine/kgraphics.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Mon Mar 9 21:31:44 CET 2009
Revision: 39274
http://scummvm.svn.sourceforge.net/scummvm/?rev=39274&view=rev
Author: wjpalenstijn
Date: 2009-03-09 20:31:43 +0000 (Mon, 09 Mar 2009)
Log Message:
-----------
Fix uninitialized color meta-values.
This fixes holes in text boxes in Iceman, among other things.
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-03-09 19:55:18 UTC (rev 39273)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-03-09 20:31:43 UTC (rev 39274)
@@ -2470,22 +2470,31 @@
else
bgcolor.visual = get_pic_color(s, SKPV_OR_ALT(8 + argextra, 255));
bgcolor.mask = GFX_MASK_VISUAL;
+ } else {
+ bgcolor.visual = PaletteEntry(0,0,0);
}
bgcolor.priority = priority;
bgcolor.mask |= priority >= 0 ? GFX_MASK_PRIORITY : 0;
bgcolor.alpha = 0;
+ bgcolor.control = -1;
SCIkdebug(SCIkGRAPHICS, "New window with params %d, %d, %d, %d\n", SKPV(0), SKPV(1), SKPV(2), SKPV(3));
fgcolor.visual = get_pic_color(s, SKPV_OR_ALT(7 + argextra, 0));
fgcolor.mask = GFX_MASK_VISUAL;
+ fgcolor.control = -1;
+ fgcolor.priority = -1;
fgcolor.alpha = 0;
black.visual = get_pic_color(s, 0);
black.mask = GFX_MASK_VISUAL;
black.alpha = 0;
+ black.control = -1;
+ black.priority = -1;
lWhite.visual = get_pic_color(s, s->resmgr->_sciVersion < SCI_VERSION_01_VGA ? 15 : 255);
lWhite.mask = GFX_MASK_VISUAL;
lWhite.alpha = 0;
+ lWhite.priority = -1;
+ lWhite.control = -1;
window = sciw_new_window(s, gfx_rect(x, y, xl, yl), s->titlebar_port->font_nr, fgcolor, bgcolor,
s->titlebar_port->font_nr, lWhite, black, argv[4 + argextra].segment ?
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