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:
Torbjörn Andersson 2005-01-25 08:15:49 +00:00
parent 3623ca4637
commit cfe996642c

View file

@ -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);