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 /news_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 'news_gui.c')
-rw-r--r-- | news_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/news_gui.c b/news_gui.c index 63e42a725..79f697927 100644 --- a/news_gui.c +++ b/news_gui.c @@ -711,7 +711,7 @@ static void MessageOptionsWndProc(Window *w, WindowEvent *e) int click_state = WP(w, def_d).data_1; int i, y; - if (_news_ticker_sound) SETBIT(w->click_state, 25); + if (_news_ticker_sound) LowerWindowWidget(w, 25); DrawWindowWidgets(w); /* XXX - Draw the fake widgets-buttons. Can't add these to the widget-desc since @@ -750,7 +750,7 @@ static void MessageOptionsWndProc(Window *w, WindowEvent *e) break; case 25: /* Change ticker sound on/off */ _news_ticker_sound ^= 1; - TOGGLEBIT(w->click_state, e->we.click.widget); + ToggleWidgetLoweredState(w, e->we.click.widget); InvalidateWidget(w, e->we.click.widget); break; default: { /* Clicked on the [<] .. [>] widgets */ |