aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2005-11-08 22:15:49 +0000
committerMax Horn2005-11-08 22:15:49 +0000
commit5f32a2c3b60a2ad08de417a01a56074134d573d9 (patch)
tree4b0bdcd6676ca89864b14005f7299a088ad033d8 /scumm
parent5dd373e577b07816fec4f9de7b36d66e3867c7b9 (diff)
downloadscummvm-rg350-5f32a2c3b60a2ad08de417a01a56074134d573d9.tar.gz
scummvm-rg350-5f32a2c3b60a2ad08de417a01a56074134d573d9.tar.bz2
scummvm-rg350-5f32a2c3b60a2ad08de417a01a56074134d573d9.zip
Fix for ScummEngine::drawStripToScreen: do nothing if height is negative
svn-id: r19519
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 761cd5982b..f56562d8cd 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -534,6 +534,9 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i
int y = vs->topline + top - _screenTop;
int height = bottom - top;
+ if (height <= 0)
+ return;
+
// Compute screen etc. buffer pointers
const byte *src = vs->getPixels(x, top);
byte *dst = _compositeBuf + x + y * _screenWidth;