[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.530,1.531 simon.h,1.157,1.158 vga.cpp,1.146,1.147

kirben kirben at users.sourceforge.net
Wed Nov 9 21:34:05 CET 2005


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7050/simon

Modified Files:
	simon.cpp simon.h vga.cpp 
Log Message:

Add palette difference in FF.


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.530
retrieving revision 1.531
diff -u -d -r1.530 -r1.531
--- simon.cpp	10 Nov 2005 00:53:00 -0000	1.530
+++ simon.cpp	10 Nov 2005 05:33:31 -0000	1.531
@@ -604,7 +604,7 @@
 	_unkPalFlag = 0;
 	_exitCutscene = 0;
 	_skipSpeech = 0;
-	_videoVar9 = 0;
+	_paletteFlag = 0;
 
 	_soundFileId = 0;
 	_lastMusicPlayed = -1;
@@ -2805,8 +2805,8 @@
 	const byte *vc_ptr_org = _vcPtr;
 	uint16 params[5];							// parameters to vc10
 
-	if (_videoVar9 == 2)
-		_videoVar9 = 1;
+	if (_paletteFlag == 2)
+		_paletteFlag = 1;
 
 	if (_game & GF_SIMON2 && _scrollFlag) {
 		timer_vga_sprites_helper();
@@ -2888,8 +2888,8 @@
 	const byte *vc_ptr_org = _vcPtr;
 	uint16 params[5];							// parameters to vc10_draw
 
-	if (_videoVar9 == 2)
-		_videoVar9 = 1;
+	if (_paletteFlag == 2)
+		_paletteFlag = 1;
 
 	vsp = _vgaSprites;
 	while (vsp->id != 0) {
@@ -3955,8 +3955,8 @@
 void SimonEngine::dx_update_screen_and_palette() {
 	_numScreenUpdates++;
 
-	if (_paletteColorCount == 0 && _videoVar9 == 1) {
-		_videoVar9 = 0;
+	if (_paletteColorCount == 0 && _paletteFlag == 1) {
+		_paletteFlag = 0;
 		if (memcmp(_palette, _paletteBackup, 256 * 4) != 0) {
 			memcpy(_paletteBackup, _palette, 256 * 4);
 			_system->setPalette(_palette, 0, 256);
@@ -3978,7 +3978,7 @@
 }
 
 void SimonEngine::realizePalette() {
-	_videoVar9 = false;
+	_paletteFlag = false;
 	memcpy(_paletteBackup, _palette, 256 * 4);
 
 	if (_paletteColorCount & 0x8000) {

Index: simon.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.h,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- simon.h	10 Nov 2005 01:18:09 -0000	1.157
+++ simon.h	10 Nov 2005 05:33:31 -0000	1.158
@@ -275,7 +275,7 @@
 	bool _unkPalFlag;
 	bool _exitCutscene;
 	bool _skipSpeech;
-	byte _videoVar9;
+	byte _paletteFlag;
 
 	uint _soundFileId;
 	int16 _lastMusicPlayed;

Index: vga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- vga.cpp	10 Nov 2005 01:18:09 -0000	1.146
+++ vga.cpp	10 Nov 2005 05:33:31 -0000	1.147
@@ -706,9 +706,7 @@
 	if (_dumpImages)
 		dump_single_bitmap(_vgaCurFileId, state.image, state.depack_src, width * 16, height,
 											 state.palette);
-	// TODO::Add support for image scaling
-	if (_game == GAME_FEEBLEFILES)
-		return;
+	// TODO::Add support for image scaling in Feeble Files
 
 	if (flags & 0x80 && !(state.flags & 0x10)) {
 		if (state.flags & 1) {
@@ -1209,11 +1207,16 @@
 	uint a = vc_read_next_word();
 	uint b = vc_read_next_word();
 	uint num = a == 0 ? 0x20 : 0x10;
+	uint palSize = 96;
 	byte *palptr, *src;
 
-	palptr = &_palette[(a << 6)];
+	if (_game == GAME_FEEBLEFILES) {
+		num = 256;
+		palSize = 768;
+	}
 
-	src = _curVgaFile1 + 6 + b * 96;
+	palptr = &_palette[(a << 6)];
+	src = _curVgaFile1 + 6 + b * palSize;
 
 	do {
 		palptr[0] = src[0] << 2;
@@ -1225,7 +1228,7 @@
 		src += 3;
 	} while (--num);
 
-	_videoVar9 = 2;
+	_paletteFlag = 2;
 	_vgaSpriteChanged++;
 }
 





More information about the Scummvm-git-logs mailing list