aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci')
-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();