[Scummvm-cvs-logs] SF.net SVN: scummvm: [28199] scummvm/trunk/engines/scumm/gfx.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Wed Jul 25 21:56:43 CEST 2007
Revision: 28199
http://scummvm.svn.sourceforge.net/scummvm/?rev=28199&view=rev
Author: eriktorbjorn
Date: 2007-07-25 12:56:43 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
The drawStripToScreen() does nothing if width <= 0. In bug #1759925 ("COMI:
100% crash in SVN (not in 0.X.0)"), height was a fairly large negative number,
so I've added a test for that condition as well. This seems to fix the bug.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/gfx.cpp
Modified: scummvm/trunk/engines/scumm/gfx.cpp
===================================================================
--- scummvm/trunk/engines/scumm/gfx.cpp 2007-07-25 19:01:58 UTC (rev 28198)
+++ scummvm/trunk/engines/scumm/gfx.cpp 2007-07-25 19:56:43 UTC (rev 28199)
@@ -560,7 +560,7 @@
int y = vs->topline + top - _screenTop;
int height = bottom - top;
- if (width <= 0)
+ if (width <= 0 || height <= 0)
return;
const byte *src = vs->getPixels(x, top);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list