diff options
author | Torbjörn Andersson | 2005-01-25 08:15:49 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-01-25 08:15:49 +0000 |
commit | cfe996642cbc0088c4d157a712b773a26f975a58 (patch) | |
tree | 36f2e41a628d1aed353c3131a4fc7fb29d39e6be /scumm | |
parent | 3623ca46371d6f46b9397801d61c47d18a3a79db (diff) | |
download | scummvm-rg350-cfe996642cbc0088c4d157a712b773a26f975a58.tar.gz scummvm-rg350-cfe996642cbc0088c4d157a712b773a26f975a58.tar.bz2 scummvm-rg350-cfe996642cbc0088c4d157a712b773a26f975a58.zip |
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
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); |