aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksiy Kurochko2012-05-07 09:54:32 +0300
committerEugene Sandulenko2012-05-07 09:54:32 +0300
commit97065c95e654f36070b8f12f20b3bff1752b5e0c (patch)
treecf2518dbaf7bd314295ae1f914aee13f48f84a6b
parent13876931683778587746c50592656f2b3c2af732 (diff)
downloadscummvm-rg350-97065c95e654f36070b8f12f20b3bff1752b5e0c.tar.gz
scummvm-rg350-97065c95e654f36070b8f12f20b3bff1752b5e0c.tar.bz2
scummvm-rg350-97065c95e654f36070b8f12f20b3bff1752b5e0c.zip
GUI: Fix bug with button pressed state
-rw-r--r--gui/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 6ae4e5cee5..fc6510b976 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -281,7 +281,7 @@ ButtonWidget::ButtonWidget(GuiObject *boss, int x, int y, int w, int h, const Co
if (hotkey == 0)
_hotkey = parseHotkey(label);
- setFlags(WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG | WIDGET_WANT_TICKLE);
+ setFlags(WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG);
_type = kButtonWidget;
}
@@ -290,7 +290,7 @@ ButtonWidget::ButtonWidget(GuiObject *boss, const Common::String &name, const Co
_cmd(cmd), _lastTime(0) {
if (hotkey == 0)
_hotkey = parseHotkey(label);
- setFlags(WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG | WIDGET_WANT_TICKLE);
+ setFlags(WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG);
_type = kButtonWidget;
}