diff options
author | Paul Gilbert | 2009-09-23 10:58:17 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-09-23 10:58:17 +0000 |
commit | 92e75a768ab79a2e8dd38d97b78193e10fa12bbf (patch) | |
tree | fd42cbe5c5b0734a10aba437db61f72399e6e2fe /engines | |
parent | 13ad217cdd6bf1dcb74fe9cb4f40622b58c8792a (diff) | |
download | scummvm-rg350-92e75a768ab79a2e8dd38d97b78193e10fa12bbf.tar.gz scummvm-rg350-92e75a768ab79a2e8dd38d97b78193e10fa12bbf.tar.bz2 scummvm-rg350-92e75a768ab79a2e8dd38d97b78193e10fa12bbf.zip |
Removed redundant offset from dirty rect calculation logic
svn-id: r44270
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/gfxModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp index 3ed7ee6fce..798812577f 100644 --- a/engines/cruise/gfxModule.cpp +++ b/engines/cruise/gfxModule.cpp @@ -358,7 +358,7 @@ void switchBackground(const byte *newBg) { sliceXEnd = MIN(xp + 7, 320); } else // Carry on of changed area - sliceXEnd = MAX(xp + 7, sliceXEnd); + sliceXEnd = MAX(xp, sliceXEnd); } else if ((sliceXEnd != -1) && (xp >= (sliceXEnd + 10))) { // If more than 10 pixels have gone by without any changes, then end the slice |