diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/dialogs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |