aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/graphics.h
diff options
context:
space:
mode:
authorSimei Yin2017-07-20 01:55:21 +0200
committerSimei Yin2017-07-20 02:00:18 +0200
commit7e95f7dc635409152a86e2209e308f69a83c1889 (patch)
tree8d43431f207930a15857214a6eb4cf1031b8a38e /engines/sludge/graphics.h
parentaded7ce9e9cdfd8f6c2a24f712d860f3ac712f75 (diff)
downloadscummvm-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.h3
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);