diff options
author | Eugene Sandulenko | 2006-03-24 17:39:13 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-24 17:39:13 +0000 |
commit | aa743f8920f09b743c9d9baf8d353f0a3e34cec4 (patch) | |
tree | a047b8678223037df8c430c6b881687dae5f660b | |
parent | 1c061dea4be2186b39020cb8cf7352b7ed1efdff (diff) | |
download | scummvm-rg350-aa743f8920f09b743c9d9baf8d353f0a3e34cec4.tar.gz scummvm-rg350-aa743f8920f09b743c9d9baf8d353f0a3e34cec4.tar.bz2 scummvm-rg350-aa743f8920f09b743c9d9baf8d353f0a3e34cec4.zip |
Fix chechbox label alignment.
svn-id: r21433
-rw-r--r-- | gui/ThemeClassic.cpp | 2 | ||||
-rw-r--r-- | gui/ThemeNew.cpp | 2 | ||||
-rw-r--r-- | gui/widget.cpp | 1 |
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; } |