[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.22,1.23
James Brown
ender at users.sourceforge.net
Wed Oct 2 10:26:33 CEST 2002
Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv30357/scumm
Modified Files:
string.cpp
Log Message:
Less specific version of eriktorbjorns FT dialog hack
Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- string.cpp 22 Sep 2002 03:53:52 -0000 1.22
+++ string.cpp 2 Oct 2002 17:23:19 -0000 1.23
@@ -560,7 +560,10 @@
charset._left -= charset.getStringWidth(a, buf, 0) >> 1;
}
- charset._ignoreCharsetMask = 1;
+ // Full Throttle's conversation menus should definitely mask the
+ // background.
+ if (!(_features & GF_AFTER_V7))
+ charset._ignoreCharsetMask = 1;
if (!buf[0]) {
buf[0] = ' ';
@@ -598,10 +601,10 @@
break;
}
} else {
- if (a == 1 && (_features & GF_AFTER_V6))
-
+ if (a == 1 && (_features & GF_AFTER_V6)) {
if (_string[a].no_talk_anim == 0)
charset._blitAlso = true;
+ }
if (_features & GF_OLD256)
charset.printCharOld(chr);
else
@@ -615,7 +618,19 @@
if (a == 0) {
charset._xpos2 = charset._left;
charset._ypos2 = charset._top;
- }
+ }
+
+ if (_features & GF_AFTER_V7) {
+ charset._hasMask = true;
+ if (charset._strLeft < gdi._mask_left)
+ gdi._mask_left = charset._strLeft;
+ if (charset._strRight > gdi._mask_right)
+ gdi._mask_right = charset._strRight;
+ if (charset._strTop < gdi._mask_top)
+ gdi._mask_top = charset._strTop;
+ if (charset._strBottom > gdi._mask_bottom)
+ gdi._mask_bottom = charset._strBottom;
+ }
}
byte *Scumm::addMessageToStack(byte *msg)
More information about the Scummvm-git-logs
mailing list