[Scummvm-cvs-logs] SF.net SVN: scummvm:[42370] scummvm/trunk/engines/cruise
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Jul 11 07:14:42 CEST 2009
Revision: 42370
http://scummvm.svn.sourceforge.net/scummvm/?rev=42370&view=rev
Author: dreammaster
Date: 2009-07-11 05:14:42 +0000 (Sat, 11 Jul 2009)
Log Message:
-----------
Added initialisation of paging screens when the game starts
Modified Paths:
--------------
scummvm/trunk/engines/cruise/cruise.cpp
scummvm/trunk/engines/cruise/gfxModule.cpp
scummvm/trunk/engines/cruise/gfxModule.h
Modified: scummvm/trunk/engines/cruise/cruise.cpp
===================================================================
--- scummvm/trunk/engines/cruise/cruise.cpp 2009-07-11 05:12:17 UTC (rev 42369)
+++ scummvm/trunk/engines/cruise/cruise.cpp 2009-07-11 05:14:42 UTC (rev 42370)
@@ -118,6 +118,7 @@
// video init stuff
initSystem();
+ gfxModuleData_Init();
// another bit of video init
Modified: scummvm/trunk/engines/cruise/gfxModule.cpp
===================================================================
--- scummvm/trunk/engines/cruise/gfxModule.cpp 2009-07-11 05:12:17 UTC (rev 42369)
+++ scummvm/trunk/engines/cruise/gfxModule.cpp 2009-07-11 05:14:42 UTC (rev 42370)
@@ -217,6 +217,12 @@
}
}
+void gfxModuleData_Init(void) {
+ memset(globalScreen, 0, 320 * 200);
+ memset(page00, 0, 320 * 200);
+ memset(page10, 0, 320 * 200);
+}
+
void gfxModuleData_flipScreen(void) {
memcpy(globalScreen, gfxModuleData.pPage00, 320 * 200);
Modified: scummvm/trunk/engines/cruise/gfxModule.h
===================================================================
--- scummvm/trunk/engines/cruise/gfxModule.h 2009-07-11 05:12:17 UTC (rev 42369)
+++ scummvm/trunk/engines/cruise/gfxModule.h 2009-07-11 05:14:42 UTC (rev 42370)
@@ -56,6 +56,7 @@
void gfxModuleData_gfxCopyScreen(const uint8 *sourcePtr, uint8 *destPtr);
void convertGfxFromMode4(const uint8 *sourcePtr, int width, int height, uint8 *destPtr);
void convertGfxFromMode5(const uint8 *sourcePtr, int width, int height, uint8 *destPtr);
+void gfxModuleData_Init(void);
void gfxModuleData_flipScreen(void);
//void gfxModuleData_setPal(uint8 * ptr);
void gfxModuleData_convertOldPalColor(uint16 oldColor, uint8 *pOutput);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list