aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeClassic.cpp2
-rw-r--r--gui/ThemeNew.cpp2
-rw-r--r--gui/widget.cpp1
3 files changed, 2 insertions, 3 deletions
diff --git a/gui/ThemeClassic.cpp b/gui/ThemeClassic.cpp
index 57f81def68..fd5747bcda 100644
--- a/gui/ThemeClassic.cpp
+++ b/gui/ThemeClassic.cpp
@@ -303,7 +303,7 @@ void ThemeClassic::drawCheckbox(const Common::Rect &r, const Common::String &str
}
r2.left += checkBoxSize + 10;
- _font->drawString(&_screen, str, r2.left, r2.top, r2.width(), getColor(state), Graphics::kTextAlignCenter, 0, true);
+ _font->drawString(&_screen, str, r2.left, r2.top, r2.width(), getColor(state), Graphics::kTextAlignLeft, 0, true);
addDirtyRect(r);
}
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index b4ba5c7e0f..dc0bfc0e05 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -605,7 +605,7 @@ void ThemeNew::drawCheckbox(const Common::Rect &r, const Common::String &str, bo
drawSurface(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h), checkBox, false, false, (state == kStateDisabled) ? 128 : 256);
r2.left += checkBoxSize + 5;
- _font->drawString(&_screen, str, r2.left, r2.top, r2.width(), getColor(state), Graphics::kTextAlignCenter, 0, false);
+ _font->drawString(&_screen, str, r2.left, r2.top, r2.width(), getColor(state), Graphics::kTextAlignLeft, 0, false);
addDirtyRect(r);
}
diff --git a/gui/widget.cpp b/gui/widget.cpp
index a48b87d398..fe3bb5252f 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -185,7 +185,6 @@ ButtonWidget::ButtonWidget(GuiObject *boss, int x, int y, int w, int h, const St
ButtonWidget::ButtonWidget(GuiObject *boss, String name, const String &label, uint32 cmd, uint8 hotkey)
: StaticTextWidget(boss, name, label), CommandSender(boss),
_cmd(cmd), _hotkey(hotkey) {
- g_gui.evaluator()->setVar(name + ".align", kTextAlignCenter);
_flags = WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG;
_type = kButtonWidget;
}