[Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.121,1.122
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Tue Jan 25 00:17:01 CET 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9326
Modified Files:
dialogs.cpp
Log Message:
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.
Index: dialogs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- dialogs.cpp 10 Jan 2005 22:05:41 -0000 1.121
+++ dialogs.cpp 25 Jan 2005 08:15:49 -0000 1.122
@@ -562,7 +562,7 @@
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);
More information about the Scummvm-git-logs
mailing list