[Scummvm-cvs-logs] CVS: scummvm/scumm saveload.cpp,1.90,1.91

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Tue Jun 17 08:49:34 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv22933

Modified Files:
	saveload.cpp 
Log Message:
Cleanup.


Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/saveload.cpp,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- saveload.cpp	15 Jun 2003 00:54:13 -0000	1.90
+++ saveload.cpp	17 Jun 2003 15:32:45 -0000	1.91
@@ -163,16 +163,16 @@
 
 	_completeScreenRedraw = true;
 
+	// We could simply dirty colours 0-15 for 16-colour games -- nowadays
+	// they handle their palette pretty much like the more recent games
+	// anyway. There was a time, though, when re-initializing was necessary
+	// for backwards compatibility, and it may still prove useful if we
+	// ever add options for using different 16-colour palettes.
+
 	if (_version == 1) {
 		setupC64Palette();
-		setDirtyColors(0, 15);
 	} else if (_features & GF_16COLOR) {
-		// HACK: There was a time when ScummVM didn't store the
-		// palette in _currentPalette for 16-color games. To avoid
-		// breaking savegame compatibility, always set up the default
-		// palette after loading a game.
 		setupEGAPalette();
-		setDirtyColors(0, 15);
 	} else
 		setDirtyColors(0, 255);
 





More information about the Scummvm-git-logs mailing list