[Scummvm-cvs-logs] SF.net SVN: scummvm:[44714] scummvm/trunk/engines/sci/gui/gui_gfx.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Tue Oct 6 21:22:59 CEST 2009
Revision: 44714
http://scummvm.svn.sourceforge.net/scummvm/?rev=44714&view=rev
Author: m_kiewitz
Date: 2009-10-06 19:22:59 +0000 (Tue, 06 Oct 2009)
Log Message:
-----------
SCI/newgui: dont allow negative coordinates in draw pattern (fixes bad pixels in kq1)
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui_gfx.cpp
Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-06 18:53:20 UTC (rev 44713)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-06 19:22:59 UTC (rev 44714)
@@ -859,8 +859,8 @@
Common::Rect rect;
// We need to adjust the given coordinates, because the ones given us do not define upper left but somewhat middle
- y -= size;
- x -= size;
+ y -= size; if (y < 0) y = 0;
+ x -= size; if (x < 0) x = 0;
rect.top = y + _curPort->top; rect.left = x + _curPort->left;
rect.setHeight((size*2)+1); rect.setWidth((size*2)+2);
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