diff src/main_gui.cpp @ 9116:44beb31166aa draft

(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
author rubidium <rubidium@openttd.org>
date Tue, 06 May 2008 22:08:18 +0000 (2008-05-06)
parents d48433370037
children 428852b86d4d
line wrap: on
line diff
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -103,7 +103,7 @@
 	if (w->IsWidgetDisabled(widget)) return false;
 
 	SndPlayFx(SND_15_BEEP);
-	SetWindowDirty(w);
+	w->SetDirty();
 
 	if (w->IsWidgetLowered(widget)) {
 		ResetObjectToPlace();
@@ -187,7 +187,7 @@
 		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;