[Scummvm-cvs-logs] SF.net SVN: scummvm:[50210] scummvm/trunk/engines/sci/graphics/text16.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Thu Jun 24 13:52:08 CEST 2010
Revision: 50210
http://scummvm.svn.sourceforge.net/scummvm/?rev=50210&view=rev
Author: m_kiewitz
Date: 2010-06-24 11:52:08 +0000 (Thu, 24 Jun 2010)
Log Message:
-----------
SCI: fix kTextSize to not crash when destination has an invalid rect in it
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/text16.cpp
Modified: scummvm/trunk/engines/sci/graphics/text16.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/text16.cpp 2010-06-24 11:50:25 UTC (rev 50209)
+++ scummvm/trunk/engines/sci/graphics/text16.cpp 2010-06-24 11:52:08 UTC (rev 50210)
@@ -467,7 +467,7 @@
}
void GfxText16::kernelTextSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight) {
- Common::Rect rect(0, 0, *textWidth, *textHeight);
+ Common::Rect rect(0, 0, 0, 0);
Size(rect, text, font, maxWidth);
*textWidth = rect.width();
*textHeight = rect.height();
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