[Scummvm-cvs-logs] scummvm master -> 898f7d12447946d4f6b7801218fc4ce4adbd8ec4

fuzzie fuzzie at fuzzie.org
Mon Feb 14 16:22:12 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
898f7d1244 MOHAWK: Center InfoDialog text.


Commit: 898f7d12447946d4f6b7801218fc4ce4adbd8ec4
    https://github.com/scummvm/scummvm/commit/898f7d12447946d4f6b7801218fc4ce4adbd8ec4
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-02-14T07:20:11-08:00

Commit Message:
MOHAWK: Center InfoDialog text.

This is the same as the fix for scumm in 0e32d533.

Changed paths:
    engines/mohawk/dialogs.cpp



diff --git a/engines/mohawk/dialogs.cpp b/engines/mohawk/dialogs.cpp
index f1a5586..b5ddc6d 100644
--- a/engines/mohawk/dialogs.cpp
+++ b/engines/mohawk/dialogs.cpp
@@ -38,7 +38,7 @@ namespace Mohawk {
 InfoDialog::InfoDialog(MohawkEngine *vm, const Common::String &message) : _vm(vm), GUI::Dialog(0, 0, 1, 1), _message(message) {
 	_backgroundType = GUI::ThemeEngine::kDialogBackgroundSpecial;
 
-	_text = new GUI::StaticTextWidget(this, 4, 4, 10, 10, _message, Graphics::kTextAlignCenter);
+	_text = new GUI::StaticTextWidget(this, 0, 0, 10, 10, _message, Graphics::kTextAlignCenter);
 }
 
 void InfoDialog::setInfoText(const Common::String &message) {
@@ -58,7 +58,7 @@ void InfoDialog::reflowLayout() {
 	_x = (screenW - width) / 2;
 	_y = (screenH - height) / 2;
 
-	_text->setSize(_w - 8, _h);
+	_text->setSize(_w, _h);
 }
 
 PauseDialog::PauseDialog(MohawkEngine *vm, const Common::String &message) : InfoDialog(vm, message) {






More information about the Scummvm-git-logs mailing list