[Scummvm-cvs-logs] SF.net SVN: scummvm:[43325] scummvm/trunk/engines/kyra/screen.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Wed Aug 12 20:07:27 CEST 2009
Revision: 43325
http://scummvm.svn.sourceforge.net/scummvm/?rev=43325&view=rev
Author: lordhoto
Date: 2009-08-12 18:07:27 +0000 (Wed, 12 Aug 2009)
Log Message:
-----------
Add a slight paranoia check to drawCharANSI.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/screen.cpp
Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp 2009-08-12 18:06:32 UTC (rev 43324)
+++ scummvm/trunk/engines/kyra/screen.cpp 2009-08-12 18:07:27 UTC (rev 43325)
@@ -1190,6 +1190,8 @@
const int charWidth = fnt->getCharWidth(c);
const int charHeight = fnt->getHeight();
+ if (x < 0 || y < 0)
+ return;
if (x + charWidth > SCREEN_W || y + charHeight > SCREEN_H)
return;
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