aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-24 11:52:08 +0000
committerMartin Kiewitz2010-06-24 11:52:08 +0000
commit0722d96a3e249a7efe853d77b1432100912499d1 (patch)
tree7d4dad81fd7916c493455e38213a57e25c394897 /engines
parent9a3ef9b8e17151993c9b1a6f79fd97ec058a4cc9 (diff)
downloadscummvm-rg350-0722d96a3e249a7efe853d77b1432100912499d1.tar.gz
scummvm-rg350-0722d96a3e249a7efe853d77b1432100912499d1.tar.bz2
scummvm-rg350-0722d96a3e249a7efe853d77b1432100912499d1.zip
SCI: fix kTextSize to not crash when destination has an invalid rect in it
svn-id: r50210
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index c9a7f09973..e9adac9572 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -467,7 +467,7 @@ bool GfxText16::SwitchToFont900OnSjis(const char *text) {
}
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();