[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.203,2.204 script_v5.cpp,1.161,1.162 string.cpp,1.153,1.154
Travis Howell
kirben at users.sourceforge.net
Thu Aug 28 05:22:09 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv18599/scumm
Modified Files:
gfx.cpp script_v5.cpp string.cpp
Log Message:
Update warnings in mingw makefile.
Add hack to allow nosubtitles in loomcd (Only once game has started)
Revert _roomPalette changes for 256 colors games, caused problems in loomcd, I'm not sure the older 256 color needs these changes.
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.203
retrieving revision 2.204
diff -u -d -r2.203 -r2.204
--- gfx.cpp 27 Aug 2003 03:54:50 -0000 2.203
+++ gfx.cpp 28 Aug 2003 12:21:35 -0000 2.204
@@ -1898,7 +1898,7 @@
do {
FILL_BITS;
if (color != _transparentColor)
- *dst = (_vm->_features & GF_SMALL_HEADER) ? _vm->_roomPalette[color + _palette_mod] : color + _palette_mod;
+ *dst = color + _palette_mod;
dst++;
if (!READ_BIT) {
} else if (!READ_BIT) {
@@ -1930,7 +1930,7 @@
int h = height;
do {
FILL_BITS;
- *dst = (_vm->_features & GF_SMALL_HEADER) ? _vm->_roomPalette[color + _palette_mod] : color + _palette_mod;
+ *dst = color + _palette_mod;
dst += _vm->_screenWidth;
if (!READ_BIT) {
} else if (!READ_BIT) {
@@ -2036,7 +2036,7 @@
byte color = *src++;
do {
- *dst = _vm->_roomPalette[color];
+ *dst = color;
NEXT_ROW
} while (--run);
}
@@ -2065,7 +2065,7 @@
color += bits << i;
}
for (i = 0; i < ((c & 3) + 2); i++) {
- *dst = (run * 16 + _vm->_roomPalette[color]);
+ *dst = (run * 16 + color);
NEXT_ROW
}
break;
@@ -2077,7 +2077,7 @@
READ_256BIT;
color += bits << j;
}
- *dst = (run * 16 + _vm->_roomPalette[color]);
+ *dst = (run * 16 + color);
NEXT_ROW
}
break;
@@ -2106,13 +2106,13 @@
for (;;) {
byte color = *src++;
if (color < numcolors) {
- *dst = local_palette[_vm->_roomPalette[color]];
+ *dst = local_palette[color];
NEXT_ROW
} else {
uint run = color - numcolors + 1;
color = *src++;
do {
- *dst = _vm->_roomPalette[color];
+ *dst = color;
NEXT_ROW
} while (--run);
}
@@ -2129,7 +2129,7 @@
do {
int h = height;
do {
- *dst = _vm->_roomPalette[color];
+ *dst = color;
dst += _vm->_screenWidth;
for (i = 0; i < 3; i++) {
READ_256BIT
Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- script_v5.cpp 27 Aug 2003 15:13:04 -0000 1.161
+++ script_v5.cpp 28 Aug 2003 12:21:35 -0000 1.162
@@ -1661,8 +1661,13 @@
b = getVarOrDirectWord(0x40);
}
checkRange(256, 0, a, "o5_roomOps: 2: Illegal room color slot (%d)");
- _roomPalette[b] = a;
- _fullRedraw = true;
+ if (_features & GF_16COLOR) {
+ _roomPalette[b] = a;
+ _fullRedraw = true;
+ } else {
+ _shadowPalette[b] = a;
+ setDirtyColors(b, b);
+ }
} else {
error("room-color is no longer a valid command");
}
Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- string.cpp 28 Aug 2003 10:10:32 -0000 1.153
+++ string.cpp 28 Aug 2003 12:21:35 -0000 1.154
@@ -16,7 +16,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+<<<<<<< string.cpp
+ * $Header$
+=======
* $Header$
+>>>>>>> 1.153
*
*/
@@ -310,7 +314,10 @@
if (_version <= 3) {
_charset->printChar(c);
} else {
- if (_noSubtitles && (_haveMsg == 0xFE || _sound->_talkChannelHandle)) {
+ if ((_gameId == GID_LOOM256) && _noSubtitles) {
+ // FIXME Special case for loomcd, since it only uses CD audio.for sound
+ // We need a way to check if CD audio is been used
+ } else if (_noSubtitles && (_haveMsg == 0xFE || _sound->_talkChannelHandle)) {
// Subtitles are turned off, and there is a voice version
// of this message -> don't print it.
} else
More information about the Scummvm-git-logs
mailing list