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
This commit is contained in:
parent
3623ca4637
commit
cfe996642c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue