From 9db77e3808139fe3364345aa7bf09a5e41198e4c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 May 2008 22:08:18 +0000 Subject: (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. --- src/depot_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/depot_gui.cpp') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 376acf0ea..8021aa303 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -440,7 +440,7 @@ static void DepotClick(Window *w, int x, int y) int image = v->GetImage(DIR_W); WP(w, depot_d).sel = v->index; - SetWindowDirty(w); + w->SetDirty(); SetObjectToPlaceWnd(image, GetVehiclePalette(v), VHM_DRAG, w); _cursor.vehchain = _ctrl_pressed; } @@ -903,7 +903,7 @@ static void DepotWndProc(Window *w, WindowEvent *e) VehicleID sel = WP(w, depot_d).sel; WP(w, depot_d).sel = INVALID_VEHICLE; - SetWindowDirty(w); + w->SetDirty(); if (WP(w, depot_d).type == VEH_TRAIN) { GetDepotVehiclePtData gdvp; @@ -940,7 +940,7 @@ static void DepotWndProc(Window *w, WindowEvent *e) v = GetVehicle(WP(w, depot_d).sel); WP(w, depot_d).sel = INVALID_VEHICLE; - SetWindowDirty(w); + w->SetDirty(); sell_cmd = (v->type == VEH_TRAIN && (e->we.click.widget == DEPOT_WIDGET_SELL_CHAIN || _ctrl_pressed)) ? 1 : 0; @@ -964,7 +964,7 @@ static void DepotWndProc(Window *w, WindowEvent *e) break; default: WP(w, depot_d).sel = INVALID_VEHICLE; - SetWindowDirty(w); + w->SetDirty(); } _cursor.vehchain = false; break; -- cgit v1.2.3-54-g00ecf