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/terraform_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/terraform_gui.cpp') diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 76da96c3c..2c0def89d 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -310,7 +310,7 @@ void ShowTerraformToolbar(Window *link) w->top = 22; link->left = w->left - link->width; - SetWindowDirty(link); + link->SetDirty(); } } @@ -609,7 +609,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e) _terraform_size = size; SndPlayFx(SND_15_BEEP); - SetWindowDirty(w); + w->SetDirty(); } break; case 15: // gen random land w->HandleButtonClick(15); @@ -662,7 +662,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e) case WE_ABORT_PLACE_OBJ: w->RaiseButtons(); - SetWindowDirty(w); + w->SetDirty(); break; } } -- cgit v1.2.3-54-g00ecf