diff options
author | belugas <belugas@openttd.org> | 2006-10-03 20:16:20 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-10-03 20:16:20 +0000 |
commit | 17eb65050b29b84e1a5b452d302c1a40931764cb (patch) | |
tree | 22b881cad1fc846e1fe14182d37c8f6e6261f820 /music_gui.c | |
parent | bdaab39e648891f3e86a290ade9b02fe4d215f45 (diff) | |
download | openttd-17eb65050b29b84e1a5b452d302c1a40931764cb.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.c | 6 |
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); |