summaryrefslogtreecommitdiff
path: root/music_gui.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-10-03 20:16:20 +0000
committerbelugas <belugas@openttd.org>2006-10-03 20:16:20 +0000
commit688da1d9406cbd6fb359605de0d5c43c77f7a8ea (patch)
tree22b881cad1fc846e1fe14182d37c8f6e6261f820 /music_gui.c
parent0dd2126543cb5613272876114a89fdbcbadeb21c (diff)
downloadopenttd-688da1d9406cbd6fb359605de0d5c43c77f7a8ea.tar.xz
(svn r6631) -Codechange: Use accessors for click_state.
Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
Diffstat (limited to 'music_gui.c')
-rw-r--r--music_gui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/music_gui.c b/music_gui.c
index 6174337c0..bc001317f 100644
--- a/music_gui.c
+++ b/music_gui.c
@@ -200,7 +200,8 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
int y;
SetWindowWidgetDisabledState(w, 11, msf.playlist <= 3);
- w->click_state |= 0x18;
+ LowerWindowWidget(w, 3);
+ LowerWindowWidget(w, 4);
DrawWindowWidgets(w);
GfxFillRect(3, 23, 3+177,23+191,0);
@@ -341,7 +342,8 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e)
uint i;
StringID str;
- w->click_state |= 0x280;
+ RaiseWindowWidget(w, 7);
+ RaiseWindowWidget(w, 9);
DrawWindowWidgets(w);
GfxFillRect(187, 16, 200, 33, 0);