summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-29 22:04:02 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-29 22:04:02 +0000
commit627dd10451c904e32d873b50eebe9f8ca935c7a5 (patch)
tree5b135f63523ef973a5161d964c97381e8da0b545 /misc_gui.c
parent708c135ff7a3e02ab712e4ec6f9a42ff05a826d2 (diff)
downloadopenttd-627dd10451c904e32d873b50eebe9f8ca935c7a5.tar.xz
(svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore"
Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 8e9bfbb86..c3dc9dc9e 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -735,12 +735,7 @@ void UnclickSomeWindowButtons(Window *w, uint32 mask)
void UnclickWindowButtons(Window *w)
{
- bool sticky = false;
- if (w->desc_flags & WDF_STICKY_BUTTON && HASBIT(w->click_state, 2)) sticky = true;
-
UnclickSomeWindowButtons(w, (uint32)-1);
-
- if (sticky) SETBIT(w->click_state, 2);
}