(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.

This commit is contained in:
rubidium
2008-05-06 22:08:18 +00:00
parent e6c944a6c4
commit 9bf519f26b
34 changed files with 241 additions and 246 deletions

View File

@@ -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;