diff options
author | Paul Gilbert | 2009-07-11 05:14:42 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-07-11 05:14:42 +0000 |
commit | 2c96ca84f36d42353bed7f8830efd3822e4dde85 (patch) | |
tree | 8cd499deaa6a9393dcb1c6832e0b7b7b7e24f4ce /engines | |
parent | 99d81ac2edd689def2713b7a88e9114343cc4ef0 (diff) | |
download | scummvm-rg350-2c96ca84f36d42353bed7f8830efd3822e4dde85.tar.gz scummvm-rg350-2c96ca84f36d42353bed7f8830efd3822e4dde85.tar.bz2 scummvm-rg350-2c96ca84f36d42353bed7f8830efd3822e4dde85.zip |
Added initialisation of paging screens when the game starts
svn-id: r42370
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/cruise.cpp | 1 | ||||
-rw-r--r-- | engines/cruise/gfxModule.cpp | 6 | ||||
-rw-r--r-- | engines/cruise/gfxModule.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/engines/cruise/cruise.cpp b/engines/cruise/cruise.cpp index a2726f2da6..3d3a44a36c 100644 --- a/engines/cruise/cruise.cpp +++ b/engines/cruise/cruise.cpp @@ -118,6 +118,7 @@ void CruiseEngine::initialize() { // video init stuff initSystem(); + gfxModuleData_Init(); // another bit of video init diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp index 47d3f49204..003a335e42 100644 --- a/engines/cruise/gfxModule.cpp +++ b/engines/cruise/gfxModule.cpp @@ -217,6 +217,12 @@ void gfxCopyRect(const uint8 *sourceBuffer, int width, int height, byte *dest, i } } +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); diff --git a/engines/cruise/gfxModule.h b/engines/cruise/gfxModule.h index 4b06e62991..dc085d8b0d 100644 --- a/engines/cruise/gfxModule.h +++ b/engines/cruise/gfxModule.h @@ -56,6 +56,7 @@ void gfxCopyRect(const uint8 *sourceBuffer, int width, int height, byte *dest, i 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); |