From 0722d96a3e249a7efe853d77b1432100912499d1 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 24 Jun 2010 11:52:08 +0000 Subject: SCI: fix kTextSize to not crash when destination has an invalid rect in it svn-id: r50210 --- engines/sci/graphics/text16.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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(); -- cgit v1.2.3