diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 22:08:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 22:08:18 +0000 |
commit | 9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61 (patch) | |
tree | 6760a7b433eda594e11470ba7695e8c399fadbfd /src/main_gui.cpp | |
parent | e6c944a6c4507ec00948391d1b0bdf300bbd879e (diff) | |
download | openttd-9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61.tar.xz |
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index c006087d1..33a42f01b 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -103,7 +103,7 @@ bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, ViewportHighl if (w->IsWidgetDisabled(widget)) return false; SndPlayFx(SND_15_BEEP); - SetWindowDirty(w); + w->SetDirty(); if (w->IsWidgetLowered(widget)) { ResetObjectToPlace(); @@ -187,7 +187,7 @@ bool DoZoomInOutWindow(int how, Window *w) vp->virtual_left = WP(w, vp_d).scrollpos_x; vp->virtual_top = WP(w, vp_d).scrollpos_y; } - SetWindowDirty(w); + w->SetDirty(); /* Update the windows that have zoom-buttons to perhaps disable their buttons */ SendWindowMessageClass(w->window_class, how, w->window_number, 0); return true; |