[Scummvm-cvs-logs] SF.net SVN: scummvm:[43431] scummvm/trunk/engines/scumm/dialogs.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Aug 16 13:29:00 CEST 2009
Revision: 43431
http://scummvm.svn.sourceforge.net/scummvm/?rev=43431&view=rev
Author: lordhoto
Date: 2009-08-16 11:28:59 +0000 (Sun, 16 Aug 2009)
Log Message:
-----------
Fix bug #2838464 "SCUMM: GUI messages misaligned".
Modified Paths:
--------------
scummvm/trunk/engines/scumm/dialogs.cpp
Modified: scummvm/trunk/engines/scumm/dialogs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/dialogs.cpp 2009-08-16 07:40:13 UTC (rev 43430)
+++ scummvm/trunk/engines/scumm/dialogs.cpp 2009-08-16 11:28:59 UTC (rev 43431)
@@ -745,7 +745,7 @@
_message = queryResString(res);
// Width and height are dummy
- _text = new StaticTextWidget(this, 4, 4, 10, 10, _message, kTextAlignCenter);
+ _text = new StaticTextWidget(this, 0, 0, 10, 10, _message, kTextAlignCenter);
}
InfoDialog::InfoDialog(ScummEngine *scumm, const String& message)
@@ -754,7 +754,7 @@
_message = message;
// Width and height are dummy
- _text = new StaticTextWidget(this, 4, 4, 10, 10, _message, kTextAlignCenter);
+ _text = new StaticTextWidget(this, 0, 0, 10, 10, _message, kTextAlignCenter);
}
void InfoDialog::setInfoText(const String& message) {
@@ -775,7 +775,7 @@
_x = (screenW - width) / 2;
_y = (screenH - height) / 2;
- _text->setSize(_w - 8, _h);
+ _text->setSize(_w, _h);
}
const Common::String InfoDialog::queryResString(int stringno) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list