aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorLionel Ulmer2002-05-14 21:55:17 +0000
committerLionel Ulmer2002-05-14 21:55:17 +0000
commit850b717ec1dca6890321688b25c55a64ad37cfbf (patch)
tree560b4568a47604eb36d6125ee94bf5618fd8bc54 /gfx.cpp
parent6fc96c8dc10e59d6014c5fc2203905d2fbecfbf7 (diff)
downloadscummvm-rg350-850b717ec1dca6890321688b25c55a64ad37cfbf.tar.gz
scummvm-rg350-850b717ec1dca6890321688b25c55a64ad37cfbf.tar.bz2
scummvm-rg350-850b717ec1dca6890321688b25c55a64ad37cfbf.zip
Fix the Valgrind warning about the save game menu in Zak.
I think that it's better to compute the height with the modified parameters and not with the original ones. Endy, otherse, please comment :-) Anyway, there seems to be some bugs remaining : 1) the save game menu is really weird looking (ie instead of having the game name displayed in the top left, there is 'How may I serve you ?' instead (maybe normal after all :-) and there seems to be some black missing). 2) in the same code I move, there is this : if(height > 200) height = 200; Why limit at 200 for a game that supports 240 :-) ? svn-id: r4329
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;