From 5f32a2c3b60a2ad08de417a01a56074134d573d9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 8 Nov 2005 22:15:49 +0000 Subject: Fix for ScummEngine::drawStripToScreen: do nothing if height is negative svn-id: r19519 --- scumm/gfx.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scumm') 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; -- cgit v1.2.3