diff options
author | Lionel Ulmer | 2002-05-14 21:55:17 +0000 |
---|---|---|
committer | Lionel Ulmer | 2002-05-14 21:55:17 +0000 |
commit | 850b717ec1dca6890321688b25c55a64ad37cfbf (patch) | |
tree | 560b4568a47604eb36d6125ee94bf5618fd8bc54 | |
parent | 6fc96c8dc10e59d6014c5fc2203905d2fbecfbf7 (diff) | |
download | scummvm-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
-rw-r--r-- | gfx.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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; |