aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gfx.cpp b/gfx.cpp
index 8ba83cc8fa..9bf3bf2243 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -210,11 +210,6 @@ void Gdi::drawStripToScreen(VirtScreen * vs, int x, int w, int t, int b)
int scrollY;
int height;
- height = b - t;
-
- if(height > 200)
- height = 200;
-
if (b <= t)
return;
@@ -224,6 +219,10 @@ void Gdi::drawStripToScreen(VirtScreen * vs, int x, int w, int t, int b)
if (b > vs->height)
b = vs->height;
+ height = b - t;
+ if(height > 200)
+ height = 200;
+
scrollY = _vm->camera._cur.y - 100;
if(scrollY == -100)
scrollY = 0;