[Scummvm-cvs-logs] SF.net SVN: scummvm:[43432] scummvm/branches/branch-1-0-0/engines/scumm/ dialogs.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Aug 16 13:31:14 CEST 2009


Revision: 43432
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43432&view=rev
Author:   lordhoto
Date:     2009-08-16 11:31:14 +0000 (Sun, 16 Aug 2009)

Log Message:
-----------
Backport of r43431: "Fix bug #2838464 "SCUMM: GUI messages misaligned"."

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/engines/scumm/dialogs.cpp

Modified: scummvm/branches/branch-1-0-0/engines/scumm/dialogs.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/scumm/dialogs.cpp	2009-08-16 11:28:59 UTC (rev 43431)
+++ scummvm/branches/branch-1-0-0/engines/scumm/dialogs.cpp	2009-08-16 11:31:14 UTC (rev 43432)
@@ -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