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/terraform_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/terraform_gui.cpp')
-rw-r--r-- | src/terraform_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |