From 9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61 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/newgrf_gui.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 3438a2ad8..2d7926cbd 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -182,7 +182,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) for (c = _all_grfs; c != NULL && i > 0; c = c->next, i--) {} WP(w, newgrf_add_d).sel = c; - SetWindowDirty(w); + w->SetDirty(); break; } @@ -218,7 +218,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) case ANGRFW_RESCAN: // Rescan list WP(w, newgrf_add_d).sel = NULL; ScanNewGRFFiles(); - SetWindowDirty(w); + w->SetDirty(); break; } break; @@ -333,7 +333,7 @@ static void NewGRFConfirmationCallback(Window *w, bool confirmed) for (c = *nd->list; c != NULL && i > 0; c = c->next, i--) {} nd->sel = c; - SetWindowDirty(w); + w->SetDirty(); } } @@ -435,7 +435,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) WP(w, newgrf_d).sel = newsel; SetupNewGRFWindow(w); - SetWindowDirty(w); + w->SetDirty(); break; } @@ -451,7 +451,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } } - SetWindowDirty(w); + w->SetDirty(); break; } @@ -467,7 +467,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } } - SetWindowDirty(w); + w->SetDirty(); break; } @@ -478,7 +478,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) for (c = *WP(w, newgrf_d).list; c != NULL && i > 0; c = c->next, i--) {} WP(w, newgrf_d).sel = c; - SetWindowDirty(w); + w->SetDirty(); break; } @@ -517,7 +517,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) /* parse_intlist returns -1 on error */ if (c->num_params == (byte)-1) c->num_params = 0; } - SetWindowDirty(w); + w->SetDirty(); break; case WE_DESTROY: -- cgit v1.2.3-70-g09d2