From 3abc1e8375989b21d47f383f9184d74ca504951c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 6 Jul 2009 12:33:05 +0000 Subject: Removed all the current special cases coding for user (mouse press) waiting, and reimplemented it exactly the way the original did svn-id: r42173 --- engines/cruise/gfxModule.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'engines/cruise/gfxModule.cpp') diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp index 50e6587d90..47d3f49204 100644 --- a/engines/cruise/gfxModule.cpp +++ b/engines/cruise/gfxModule.cpp @@ -40,7 +40,6 @@ palEntry lpalette[256]; int palDirtyMin = 256; int palDirtyMax = -1; -bool isBlack = false; gfxModuleDataStruct gfxModuleData = { 0, // use Tandy @@ -238,12 +237,6 @@ void flip() { g_system->setPalette(paletteRGBA + palDirtyMin*4, palDirtyMin, palDirtyMax - palDirtyMin + 1); palDirtyMin = 256; palDirtyMax = -1; - - isBlack = true; - for (i = 0; i < 256; ++i) { - isBlack = (lpalette[i].R == 0) && (lpalette[i].G == 0) && (lpalette[i].B == 0); - if (!isBlack) break; - } } g_system->copyRectToScreen(globalScreen, 320, 0, 0, 320, 200); -- cgit v1.2.3 From 2c96ca84f36d42353bed7f8830efd3822e4dde85 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 11 Jul 2009 05:14:42 +0000 Subject: Added initialisation of paging screens when the game starts svn-id: r42370 --- engines/cruise/gfxModule.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/cruise/gfxModule.cpp') 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); -- cgit v1.2.3