From 2d9d9bca13244b398c08fe2980e130cb205b57f6 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 28 Oct 2009 23:04:56 +0000 Subject: Changed some of the menu code to use new graphics functions svn-id: r45493 --- engines/sci/gui/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci/gui') diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index b6e116be2f..3d5a0728ab 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -270,7 +270,8 @@ void SciGui::display(const char *text, int argc, reg_t *argv) { void SciGui::textSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight) { Common::Rect rect(0, 0, *textWidth, *textHeight); _text->Size(rect, text, font, maxWidth); - *textWidth = rect.width(); *textHeight = rect.height(); + *textWidth = rect.width(); + *textHeight = rect.height(); } // Used SCI1+ for text codes -- cgit v1.2.3