(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

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