aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp2
-rw-r--r--scumm/scumm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index b11f2fae74..e02ad79d91 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1210,7 +1210,7 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
sx = 0;
}
- while (numstrip && sx < _numStrips && x * 8 < width) {
+ while (numstrip && sx < _numStrips && x * 8 < _vm->_roomWidth) {
CHECK_HEAP;
if (y < vs->tdirty[sx])
diff --git a/scumm/scumm.h b/scumm/scumm.h
index b0ca63b037..02368f12c0 100644
--- a/scumm/scumm.h
+++ b/scumm/scumm.h
@@ -900,8 +900,8 @@ public:
protected:
/* Should be in Graphics class? */
uint16 _screenB, _screenH;
- int _roomHeight, _roomWidth;
public:
+ int _roomHeight, _roomWidth;
int _screenHeight, _screenWidth;
VirtScreen virtscr[4]; // Virtual screen areas
CameraData camera; // 'Camera' - viewport