diff options
author | Simei Yin | 2017-07-20 01:55:21 +0200 |
---|---|---|
committer | Simei Yin | 2017-07-20 02:00:18 +0200 |
commit | 7e95f7dc635409152a86e2209e308f69a83c1889 (patch) | |
tree | 8d43431f207930a15857214a6eb4cf1031b8a38e /engines/sludge/graphics.h | |
parent | aded7ce9e9cdfd8f6c2a24f712d860f3ac712f75 (diff) | |
download | scummvm-rg350-7e95f7dc635409152a86e2209e308f69a83c1889.tar.gz scummvm-rg350-7e95f7dc635409152a86e2209e308f69a83c1889.tar.bz2 scummvm-rg350-7e95f7dc635409152a86e2209e308f69a83c1889.zip |
SLUDGE: Fix backdrop loading for images not of the window size
Diffstat (limited to 'engines/sludge/graphics.h')
-rw-r--r-- | engines/sludge/graphics.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sludge/graphics.h b/engines/sludge/graphics.h index 024c8cacba..df8fa69c25 100644 --- a/engines/sludge/graphics.h +++ b/engines/sludge/graphics.h @@ -110,7 +110,7 @@ public: // Screen int getCenterX(int width) { return (_winWidth - width) >> 1; } - int checkSizeValide(int width, int height) { return ((width >= 0) && (height >= 0) && (width < (int)_winWidth) && (height > (int)_winHeight)); } + int checkSizeValide(int width, int height) { return ((width >= 0) && (height >= 0) && (width < (int)_winWidth) && (height < (int)_winHeight)); } // Freeze bool freeze(); @@ -194,7 +194,6 @@ private: uint32 getDrawColor(onScreenPerson *thisPerson); // ZBuffer - int _zBufferToSet; ZBufferData *_zBuffer; void sortZPal(int *oldpal, int *newpal, int size); |