[Scummvm-cvs-logs] CVS: scummvm/saga animation.cpp,1.3,1.4 font.cpp,1.5,1.6 game.cpp,1.10,1.11 game.h,1.4,1.5 game_mod.h,1.5,1.6 gfx.cpp,1.9,1.10 image.cpp,1.6,1.7 interface.cpp,1.5,1.6 isomap.cpp,1.4,1.5 palanim.cpp,1.4,1.5 reinherit.h,1.15,1.16 saga.cpp,1.16,1.17 scene.cpp,1.6,1.7 script.cpp,1.4,1.5 sprite.cpp,1.5,1.6 sysgfx.cpp,1.7,1.8

Eugene Sandulenko sev at users.sourceforge.net
Sat May 1 16:43:00 CEST 2004


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

Modified Files:
	animation.cpp font.cpp game.cpp game.h game_mod.h gfx.cpp 
	image.cpp interface.cpp isomap.cpp palanim.cpp reinherit.h 
	saga.cpp scene.cpp script.cpp sprite.cpp sysgfx.cpp 
Log Message:
Proper #includes everywhere
Improved game detector


Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/animation.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- animation.cpp	1 May 2004 06:16:57 -0000	1.3
+++ animation.cpp	1 May 2004 23:42:22 -0000	1.4
@@ -22,7 +22,7 @@
  */
 
 // Background animation management module
-
+#include "saga.h"
 #include "reinherit.h"
 #include "yslib.h"
 

Index: font.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/font.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- font.cpp	1 May 2004 08:44:00 -0000	1.5
+++ font.cpp	1 May 2004 23:42:22 -0000	1.6
@@ -22,7 +22,7 @@
  */
 
 // Font management and font drawing module
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: game.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/game.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- game.cpp	1 May 2004 14:00:53 -0000	1.10
+++ game.cpp	1 May 2004 23:42:22 -0000	1.11
@@ -27,6 +27,9 @@
 
 #include "yslib.h"
 #include "common/file.h"
+#include "base/gameDetector.h"
+#include "base/plugins.h"
+#include "backends/fs/fs.h"
 
 #include "rscfile_mod.h"
 #include "cvar_mod.h"
@@ -157,9 +160,10 @@
 R_GAMEDESC GameDescs[] = {
 	// Inherit the earth - DOS Demo version
 	{
+		"ite-demo",
 		R_GAMETYPE_ITE,
 		R_GAME_ITE_DEMO, // Game id
-		"Inherit the Earth - DOS Demo version", // Game title
+		"Inherit the Earth (DOS Demo)", // Game title
 		320, 200, // Logical resolution
 		137, // Scene viewport height
 		ITE_DEFAULT_SCENE, // Starting scene number
@@ -169,15 +173,15 @@
 		ARRAYSIZE(ITEDEMO_GameFonts),
 		ITEDEMO_GameFonts,
 		&ITEDEMO_GameSound,
-		Verify_ITEDEMO, // Game verification func
 		0 // Game supported flag
 	},
 
 	// Inherit the earth - win32 Wyrmkeep Demo version
 	{
+		"ite-demo-win",
 		R_GAMETYPE_ITE,
 		R_GAME_ITE_WINDEMO,
-		"Inherit the Earth - Win32 Wyrmkeep Demo version",
+		"Inherit the Earth (Win32 Demo)",
 		320, 200,
 		137,
 		ITE_DEFAULT_SCENE,
@@ -187,50 +191,52 @@
 		ARRAYSIZE(ITECD_GameFonts),
 		ITECD_GameFonts,
 		&ITECD_GameSound,
-		NULL,
 		0
 	},
 	
-	// Inherit the earth - Disk version
+	// Inherit the earth - CD version
+	// NOTE: it should be before floppy version
 	{
+		"itecd",
 		R_GAMETYPE_ITE,
-		R_GAME_ITE_DISK,
-		"Inherit the Earth - Disk version",
+		R_GAME_ITE_CD,
+		"Inherit the Earth (DOS CD Version)",
 		320, 200,
 		137,
 		ITE_DEFAULT_SCENE,
 		&ITE_Resources,
-		ARRAYSIZE(ITEDISK_GameFiles),
-		ITEDISK_GameFiles,
-		ARRAYSIZE(ITEDISK_GameFonts),
-		ITEDISK_GameFonts,
-		&ITE_GameSound,
-		Verify_ITEDISK,
+		ARRAYSIZE(ITECD_GameFiles),
+		ITECD_GameFiles,
+		ARRAYSIZE(ITECD_GameFonts),
+		ITECD_GameFonts,
+		&ITECD_GameSound,
 		1
 	},
 
-	// Inherit the earth - CD version
+	// Inherit the earth - Disk version
 	{
+		"ite",
 		R_GAMETYPE_ITE,
-		R_GAME_ITE_CD,
-		"Inherit the Earth - CD version",
+		R_GAME_ITE_DISK,
+		"Inherit the Earth (DOS)",
 		320, 200,
 		137,
 		ITE_DEFAULT_SCENE,
 		&ITE_Resources,
-		ARRAYSIZE(ITECD_GameFiles),
-		ITECD_GameFiles,
-		ARRAYSIZE(ITECD_GameFonts),
-		ITECD_GameFonts,
-		&ITECD_GameSound,
-		NULL,
-	1},
+		ARRAYSIZE(ITEDISK_GameFiles),
+		ITEDISK_GameFiles,
+		ARRAYSIZE(ITEDISK_GameFonts),
+		ITEDISK_GameFonts,
+		&ITE_GameSound,
+		1
+	},
 
 	// I Have No Mouth And I Must Scream - Demo version
 	{
+		"ihnm-demo",
 		R_GAMETYPE_IHNM,
 		R_GAME_IHNM_DEMO,
-		"I Have No Mouth - Demo version",
+		"I Have No Mouth and I Must Scream (DOS Demo)",
 		640, 480,
 		304,
 		0,
@@ -240,31 +246,32 @@
 		0,
 		NULL,
 		&IHNM_GameSound,
-		NULL,
-	0} ,
+		0
+	},
 
 	// I Have No Mouth And I Must Scream - CD version
 	{
-			R_GAMETYPE_IHNM,
-			R_GAME_IHNM_CD,
-			"I Have No Mouth - CD version",
-			640, 480,
-			304,
+		"ihnm",
+		R_GAMETYPE_IHNM,
+		R_GAME_IHNM_CD,
+		"I Have No Mouth and I Must Scream (DOS)",
+		640, 480,
+		304,
 
-			1,
+		1,
 
-			&IHNM_Resources,
+		&IHNM_Resources,
 
-			ARRAYSIZE(IHNMCD_GameFiles),
-			IHNMCD_GameFiles,
+		ARRAYSIZE(IHNMCD_GameFiles),
+		IHNMCD_GameFiles,
 
-			ARRAYSIZE(IHNMCD_GameFonts),
-			IHNMCD_GameFonts,
+		ARRAYSIZE(IHNMCD_GameFonts),
+		IHNMCD_GameFonts,
 
-			&IHNM_GameSound,
+		&IHNM_GameSound,
 
-			NULL,
-		1}
+		1
+	}
 };
 
 static R_GAMEMODULE GameModule;
@@ -329,6 +336,11 @@
 		return R_FAILURE;
 	}
 
+	if (!GameDescs[game_n].gd_supported) {
+		GameModule.err_str = "This game is not currently supported.";
+		return R_FAILURE;
+	}
+
 	if (LoadGame(game_dir, game_n) != R_SUCCESS) {
 		GameModule.err_str = "Error loading game resource files.";
 		return R_FAILURE;
@@ -411,9 +423,10 @@
 	return R_SUCCESS;
 }
 
-int DetectGame(const char *game_dir, uint16 *game_n_p) {
+DetectedGameList GAME_ProbeGame(const FSList &fslist) {
 	uint16 game_count = ARRAYSIZE(GameDescs);
 	uint16 game_n;
+	DetectedGameList detectedGames;
 
 	uint16 file_count;
 	uint16 file_n;
@@ -422,11 +435,56 @@
 	int file_missing = 0;
 	int found_game = 0;
 
+	for (game_n = 0; (game_n < game_count) && !found_game; game_n++) {
+		file_count = GameDescs[game_n].gd_filect;
+		file_missing = 0;
+
+		// Try to open all files for this game
+		for (file_n = 0; file_n < file_count; file_n++) {
+			file_missing = 1;
+			// Iterate over all files in the given directory
+			for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
+				const char *gameName = file->displayName().c_str();
+
+				if (0 == scumm_stricmp(GameDescs[game_n].gd_filedescs[file_n].gf_fname, 
+									   gameName)) {
+					file_missing = 0;
+					break;
+				}
+			}
+
+			if (file_missing)
+				break;
+		}
+
+		// Try the next game, couldn't find all files for the current 
+		// game
+		if (file_missing) {
+			continue;
+		} else {
+			detectedGames.push_back(GameDescs[game_n].toGameSettings());
+			return detectedGames;
+		}
+	}
+
+	return detectedGames;
+}
+
+int DetectGame(const char *game_dir, uint16 *game_n_p) {
+	uint16 game_count = ARRAYSIZE(GameDescs);
+	uint16 game_n;
+
+	uint16 file_count;
+	uint16 file_n;
+	File test_file;
+
+	int file_missing = 0;
+
 	if ((game_dir == NULL) || (game_n_p == NULL)) {
 		return R_FAILURE;
 	}
 
-	for (game_n = 0; (game_n < game_count) && !found_game; game_n++) {
+	for (game_n = 0; game_n < game_count; game_n++) {
 		file_count = GameDescs[game_n].gd_filect;
 		file_missing = 0;
 
@@ -445,19 +503,9 @@
 			continue;
 		}
 
-		// If there's a verification function for this game, use it, 
-		// otherwise assume we've found the game if all files are found.
-		found_game = 1;
-
-		if (GameDescs[game_n].gd_verifyf != NULL && GameDescs[game_n].gd_verifyf(game_dir) != R_SUCCESS) {
-			found_game = 0;
-		}
-
-		if (found_game) {
-			R_printf(R_STDOUT, "Found game: %s\n", GameDescs[game_n].gd_title);
-			*game_n_p = game_n;
-			return R_SUCCESS;
-		}
+		R_printf(R_STDOUT, "Found game: %s\n", GameDescs[game_n].gd_title);
+		*game_n_p = game_n;
+		return R_SUCCESS;
 	}
 
 	return R_FAILURE;
@@ -569,65 +617,15 @@
 	return GameModule.gamedesc->gd_game_type;
 }
 
-int Verify_ITEDEMO(const char *game_dir) {
-	debug(3, "Verify_ITEDEMO()");
-	YS_IGNORE_PARAM(game_dir);
-
-	return R_SUCCESS;
-}
-
-int Verify_ITEDISK(const char *game_dir) {
-	R_RSCFILE_CONTEXT *test_ctx;
-
-	debug(3, "Verify_ITEDISK()");
-	uint32 script_lut_len;
-	uint32 script_lut_rn;
-	int verified = 0;
-	test_ctx = RSC_CreateContext();
-
-	if (RSC_OpenContext(test_ctx, "ITE.RSC") != R_SUCCESS) {
-		return R_FAILURE;
-	}
-	
-	script_lut_rn = GameDescs[R_GAME_ITE_DISK].gd_resource_desc->script_lut_rn;
-	if (RSC_GetResourceSize(test_ctx,
-		script_lut_rn, &script_lut_len) != R_SUCCESS) {
-		RSC_DestroyContext(test_ctx);
-		return R_FAILURE;
-	}
-
-	RSC_DestroyContext(test_ctx);
-
-	if (script_lut_len % R_SCR_LUT_ENTRYLEN_ITEDISK == 0) {
-		verified = 1;
-	}
-
-	if (!verified) {
-		return R_FAILURE;
-	}
-
-	return R_SUCCESS;
-}
-
-int Verify_ITECD(const char *game_dir) {
-	debug(3, "Verify_ITECD()");
-	YS_IGNORE_PARAM(game_dir);
-
-	return R_SUCCESS;
-}
-
-int Verify_IHNMDEMO(const char *game_dir) {
-	debug(3, "Verify_IHNMDEMO()");
-	YS_IGNORE_PARAM(game_dir);
-
-	return R_SUCCESS;
-}
+GameList GAME_GameList() {
+	int gNum = ARRAYSIZE(GameDescs);
+	int i;
+	GameList games;
 
-int Verify_IHNMCD(const char *game_dir) {
-	debug(3, "Verify_IHNMCD()");
-	YS_IGNORE_PARAM(game_dir);
+	for (i = 0; i < gNum; i++)
+		games.push_back(GameDescs[i].toGameSettings());
 
-	return R_SUCCESS;
+	return games;
 }
 
 } // End of namespace Saga

Index: game.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/game.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- game.h	1 May 2004 09:07:31 -0000	1.4
+++ game.h	1 May 2004 23:42:22 -0000	1.5
@@ -26,6 +26,8 @@
 #ifndef SAGA_GAME_H_
 #define SAGA_GAME_H_
 
+#include "base/plugins.h"
+
 namespace Saga {
 
 #define R_GAME_LANGSTR_LIMIT 3
@@ -38,16 +40,15 @@
 #define R_SCR_LUT_ENTRYLEN_ITECD 22
 #define R_SCR_LUT_ENTRYLEN_ITEDISK 16
 
-typedef int (*R_GAME_VERIFYFUNC) (const char *);
-
 struct R_GAME_FILEDESC {
 	const char *gf_fname;
 	uint16 gf_type;
 };
 
 struct R_GAMEDESC {
+	const char *name;
 	int gd_game_type;
-	int gd_game_id;
+	uint32 gd_game_id;
 	const char *gd_title;
 	int gd_logical_w;
 	int gd_logical_h;
@@ -59,8 +60,12 @@
 	int gd_fontct;
 	R_GAME_FONTDESC *gd_fontdescs;
 	R_GAME_SOUNDINFO *gd_soundinfo;
-	R_GAME_VERIFYFUNC gd_verifyf;
 	int gd_supported;
+
+	GameSettings toGameSettings() const {
+		GameSettings dummy = { name, gd_title, gd_game_id };
+		return dummy;
+	}
 };
 
 struct R_GAME_FILEDATA {
@@ -86,13 +91,8 @@
 };
 
 int LoadLanguage();
-int DetectGame(const char *game_dir, uint16 * game_n_p);
 int LoadGame(const char *game_dir, uint16 game_n_p);
-int Verify_ITEDEMO(const char *game_dir);
-int Verify_ITEDISK(const char *game_dir);
-int Verify_ITECD(const char *game_dir);
-int Verify_IHNMDEMO(const char *game_dir);
-int Verify_IHNMCD(const char *game_dit);
+int DetectGame(const char *game_dir, uint16 *game_n_p);
 
 } // End of namespace Saga
 

Index: game_mod.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/game_mod.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- game_mod.h	1 May 2004 14:00:53 -0000	1.5
+++ game_mod.h	1 May 2004 23:42:22 -0000	1.6
@@ -26,6 +26,8 @@
 #ifndef SAGA_GAME_MOD_H__
 #define SAGA_GAME_MOD_H__
 
+#include "base/plugins.h"
+
 namespace Saga {
 
 enum R_GAME_BASETYPES {
@@ -110,6 +112,8 @@
 int GAME_GetErrN();
 void GAME_setGameDirectory(const char *gamedir);
 const char *GAME_GetErrS();
+GameList GAME_GameList();
+DetectedGameList GAME_ProbeGame(const FSList &fslist);
 
 } // End of namespace Saga
 

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/gfx.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gfx.cpp	1 May 2004 19:41:47 -0000	1.9
+++ gfx.cpp	1 May 2004 23:42:22 -0000	1.10
@@ -72,7 +72,7 @@
 	src_p = src_s->buf;
 	dst_p = dst_s->buf;
 
-	w = src_s->buf_w * (dst_s->bpp / 8);
+	w = src_s->buf_w;
 	p = src_s->buf_pitch;
 
 	for (y = 0; y < src_s->buf_h; y++) {

Index: image.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/image.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- image.cpp	1 May 2004 16:24:39 -0000	1.6
+++ image.cpp	1 May 2004 23:42:22 -0000	1.7
@@ -22,7 +22,7 @@
  */
 
 // SAGA Image resource management routines
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: interface.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/interface.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- interface.cpp	1 May 2004 09:37:24 -0000	1.5
+++ interface.cpp	1 May 2004 23:42:22 -0000	1.6
@@ -22,7 +22,7 @@
  */
 
 // Game interface module
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: isomap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/isomap.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- isomap.cpp	1 May 2004 13:04:31 -0000	1.4
+++ isomap.cpp	1 May 2004 23:42:22 -0000	1.5
@@ -22,7 +22,7 @@
  */
 
 // Isometric level module
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: palanim.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/palanim.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- palanim.cpp	1 May 2004 13:19:15 -0000	1.4
+++ palanim.cpp	1 May 2004 23:42:22 -0000	1.5
@@ -22,7 +22,7 @@
  */
 
 // Palette animation module
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: reinherit.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/reinherit.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- reinherit.h	1 May 2004 19:41:47 -0000	1.15
+++ reinherit.h	1 May 2004 23:42:22 -0000	1.16
@@ -71,7 +71,6 @@
 	int buf_w;
 	int buf_h;
 	int buf_pitch;
-	int bpp;
 	R_RECT clip_rect;
 	void *impl_src;
 };

Index: saga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/saga.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- saga.cpp	1 May 2004 19:41:47 -0000	1.16
+++ saga.cpp	1 May 2004 23:42:22 -0000	1.17
@@ -46,6 +46,7 @@
 #include "actionmap_mod.h"
 #include "font_mod.h"
 #include "game_mod.h"
+#include "game.h"
 #include "interface_mod.h"
 #include "isomap_mod.h"
 #include "script_mod.h"
@@ -56,60 +57,14 @@
 #include "objectmap_mod.h"
 #include "sound.h"
 #include "music.h"
-
-struct SAGAGameSettings {
-	const char *name;
-	const char *description;
-	byte id;
-	uint32 features;
-	const char *detectname;
-	GameSettings toGameSettings() const {
-		GameSettings dummy = { name, description, features };
-		return dummy;
-	}
-};
-
-static const SAGAGameSettings saga_settings[] = {
-	/* Inherit the Earth - Original floppy version */
-	{ "ite", "Inherit the Earth (DOS)", Saga::GID_ITE,
-	 MDT_ADLIB, "ite.rsc" },
-	/* Inherit the Earth - CD version */
-	{ "itecd", "Inherit the Earth (DOS CD Version)", Saga::GID_ITECD,
-	 MDT_ADLIB, "sounds.rsc" },
-	/* I Have No Mouth and I Must Scream */
-	{ "ihnm", "I Have No Mouth and I Must Scream (DOS)", Saga::GID_IHNM,
-	 MDT_ADLIB, "scream.res" },
-
-	{ NULL, NULL, 0, 0, NULL }
-};
+#include "game_mod.h"
 
 GameList Engine_SAGA_gameList() {
-	const SAGAGameSettings *g = saga_settings;
-	GameList games;
-	while (g->name) {
-		games.push_back(g->toGameSettings());
-		g++;
-	}
-	return games;
+	return Saga::GAME_GameList();
 }
 
 DetectedGameList Engine_SAGA_detectGames(const FSList &fslist) {
-	DetectedGameList detectedGames;
-	const SAGAGameSettings *g;
-
-	for (g = saga_settings; g->name; ++g) {
-		// Iterate over all files in the given directory
-		for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
-			const char *gameName = file->displayName().c_str();
-
-			if (0 == scumm_stricmp(g->detectname, gameName)) {
-				// Match found, add to list of candidates, then abort inner loop.
-				detectedGames.push_back(g->toGameSettings());
-				break;
-			}
-		}
-	}
-	return detectedGames;
+	return Saga::GAME_ProbeGame(fslist);
 }
 
 Engine *Engine_SAGA_create(GameDetector *detector, OSystem *syst) {

Index: scene.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/scene.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- scene.cpp	1 May 2004 13:48:01 -0000	1.6
+++ scene.cpp	1 May 2004 23:42:22 -0000	1.7
@@ -22,7 +22,7 @@
  */
 
 // Scene management module
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/script.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- script.cpp	1 May 2004 14:05:10 -0000	1.4
+++ script.cpp	1 May 2004 23:42:22 -0000	1.5
@@ -22,7 +22,7 @@
  */
 
 // Scripting module: Script resource handling functions
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: sprite.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sprite.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- sprite.cpp	1 May 2004 16:15:55 -0000	1.5
+++ sprite.cpp	1 May 2004 23:42:22 -0000	1.6
@@ -22,7 +22,7 @@
  */
 
 // Sprite management module
-
+#include "saga.h"
 #include "reinherit.h"
 
 #include "yslib.h"

Index: sysgfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sysgfx.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- sysgfx.cpp	1 May 2004 19:41:47 -0000	1.7
+++ sysgfx.cpp	1 May 2004 23:42:22 -0000	1.8
@@ -44,7 +44,6 @@
 	r_back_buf.buf_w = width;
 	r_back_buf.buf_h = height;
 	r_back_buf.buf_pitch = width;
-	r_back_buf.bpp = 8;
 
 	r_back_buf.clip_rect.left = 0;
 	r_back_buf.clip_rect.top = 0;





More information about the Scummvm-git-logs mailing list