diff options
author | Paul Gilbert | 2009-08-15 11:50:59 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-08-15 11:50:59 +0000 |
commit | 49a4df3c8c3e51d88c03b8f6745c787fb0f6a47e (patch) | |
tree | 4cd02e51633795b58c597c003cf7f11b870d9c4f /engines/cruise/background.cpp | |
parent | aae6c98945122c974292a429cfc1a5ee01605e88 (diff) | |
download | scummvm-rg350-49a4df3c8c3e51d88c03b8f6745c787fb0f6a47e.tar.gz scummvm-rg350-49a4df3c8c3e51d88c03b8f6745c787fb0f6a47e.tar.bz2 scummvm-rg350-49a4df3c8c3e51d88c03b8f6745c787fb0f6a47e.zip |
Added Dirty Rect handling functionality
svn-id: r43406
Diffstat (limited to 'engines/cruise/background.cpp')
-rw-r--r-- | engines/cruise/background.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp index 6635a8d621..587c790554 100644 --- a/engines/cruise/background.cpp +++ b/engines/cruise/background.cpp @@ -30,6 +30,7 @@ namespace Cruise { uint8 colorMode = 0; uint8 *backgroundScreens[8] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; // wasn't initialized in original, but it's probably better +bool backgroundChanged[8] = { false, false, false, false, false, false, false, false }; backgroundTableStruct backgroundTable[8]; char hwPage[64000]; @@ -101,6 +102,8 @@ int loadBackground(const char *name, int idx) { return (-2); } + backgroundChanged[idx] = true; + ptrToFree = gfxModuleData.pPage10; if (loadFileSub1(&ptrToFree, name, NULL) < 0) { if (ptrToFree != gfxModuleData.pPage10) |