From 160a0a5ee1b539c71c35e0f4fdc84841a1d3be70 Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 21 Dec 2004 23:27:58 +0000 Subject: (svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized --- misc_gui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'misc_gui.c') diff --git a/misc_gui.c b/misc_gui.c index e9906297a..a5e7db7a0 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -675,7 +675,12 @@ 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); } -- cgit v1.2.3-54-g00ecf