diff options
author | belugas <belugas@openttd.org> | 2006-10-04 19:11:43 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-10-04 19:11:43 +0000 |
commit | 3319eb0b3fd29ada15d6c872de31598ca34001c4 (patch) | |
tree | 1dc99947a62401f0916ac006baeea24f68e8382e /station_gui.c | |
parent | 0fcd83643434cd8bd3d8845f09b7b2ba39cab6f1 (diff) | |
download | openttd-3319eb0b3fd29ada15d6c872de31598ca34001c4.tar.xz |
(svn r6639) -CodeChange : Conversion of SetWidgetLoweredState to SetWindowWidgetLoweredState, in order to follow pre-established standard
Diffstat (limited to 'station_gui.c')
-rw-r--r-- | station_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/station_gui.c b/station_gui.c index 90ea6b974..eb095f8d9 100644 --- a/station_gui.c +++ b/station_gui.c @@ -355,7 +355,7 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e) SETBIT(facilities, e->we.click.widget - 6); LowerWindowWidget(w, e->we.click.widget); } - SetWidgetLoweredState(w, 26, facilities == (FACIL_TRAIN | FACIL_TRUCK_STOP | FACIL_BUS_STOP | FACIL_AIRPORT | FACIL_DOCK)); + SetWindowWidgetLoweredState(w, 26, facilities == (FACIL_TRAIN | FACIL_TRUCK_STOP | FACIL_BUS_STOP | FACIL_AIRPORT | FACIL_DOCK)); sl->flags |= SL_REBUILD; SetWindowDirty(w); break; @@ -405,7 +405,7 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e) LowerWindowWidget(w, e->we.click.widget); } sl->flags |= SL_REBUILD; - SetWidgetLoweredState(w, 27, cargo_filter == 0x1FFF); + SetWindowWidgetLoweredState(w, 27, cargo_filter == 0x1FFF); SetWindowDirty(w); } } @@ -436,8 +436,8 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e) for (i = 0; i < NUM_CARGO; i++) { if (HASBIT(cargo_filter, i)) LowerWindowWidget(w, i + 12); } - SetWidgetLoweredState(w, 26, facilities == (FACIL_TRAIN | FACIL_TRUCK_STOP | FACIL_BUS_STOP | FACIL_AIRPORT | FACIL_DOCK)); - SetWidgetLoweredState(w, 27, cargo_filter == 0x1FFF); + SetWindowWidgetLoweredState(w, 26, facilities == (FACIL_TRAIN | FACIL_TRUCK_STOP | FACIL_BUS_STOP | FACIL_AIRPORT | FACIL_DOCK)); + SetWindowWidgetLoweredState(w, 27, cargo_filter == 0x1FFF); sl->sort_list = NULL; sl->flags = SL_REBUILD; sl->sort_type = 0; |