From cfe996642cbc0088c4d157a712b773a26f975a58 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 25 Jan 2005 08:15:49 +0000 Subject: InfoDialog can assume the screen is 320 pixels. In games where it isn't, the dialog will be scaled to the appropriate size and position. This should fix bug #1107817. svn-id: r16635 --- scumm/dialogs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm/dialogs.cpp') diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index e53e6429d5..73149878e4 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -562,7 +562,7 @@ InfoDialog::InfoDialog(ScummEngine *scumm, const String& message) void InfoDialog::setInfoText(const String& message) { int width = g_gui.getStringWidth(message) + 16; - _x = (_vm->_screenWidth - width) >> 1; + _x = (320 - width) / 2; _w = width; new StaticTextWidget(this, 4, 4, _w - 8, _h, message, kTextAlignCenter); -- cgit v1.2.3