summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-06 22:08:18 +0000
committerrubidium <rubidium@openttd.org>2008-05-06 22:08:18 +0000
commit9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61 (patch)
tree6760a7b433eda594e11470ba7695e8c399fadbfd /src/newgrf_gui.cpp
parente6c944a6c4507ec00948391d1b0bdf300bbd879e (diff)
downloadopenttd-9bf519f26bc9b3e174803c8ebfd2427bf7c5fb61.tar.xz
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 3438a2ad8..2d7926cbd 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -182,7 +182,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e)
for (c = _all_grfs; c != NULL && i > 0; c = c->next, i--) {}
WP(w, newgrf_add_d).sel = c;
- SetWindowDirty(w);
+ w->SetDirty();
break;
}
@@ -218,7 +218,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e)
case ANGRFW_RESCAN: // Rescan list
WP(w, newgrf_add_d).sel = NULL;
ScanNewGRFFiles();
- SetWindowDirty(w);
+ w->SetDirty();
break;
}
break;
@@ -333,7 +333,7 @@ static void NewGRFConfirmationCallback(Window *w, bool confirmed)
for (c = *nd->list; c != NULL && i > 0; c = c->next, i--) {}
nd->sel = c;
- SetWindowDirty(w);
+ w->SetDirty();
}
}
@@ -435,7 +435,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
WP(w, newgrf_d).sel = newsel;
SetupNewGRFWindow(w);
- SetWindowDirty(w);
+ w->SetDirty();
break;
}
@@ -451,7 +451,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
break;
}
}
- SetWindowDirty(w);
+ w->SetDirty();
break;
}
@@ -467,7 +467,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
break;
}
}
- SetWindowDirty(w);
+ w->SetDirty();
break;
}
@@ -478,7 +478,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
for (c = *WP(w, newgrf_d).list; c != NULL && i > 0; c = c->next, i--) {}
WP(w, newgrf_d).sel = c;
- SetWindowDirty(w);
+ w->SetDirty();
break;
}
@@ -517,7 +517,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
/* parse_intlist returns -1 on error */
if (c->num_params == (byte)-1) c->num_params = 0;
}
- SetWindowDirty(w);
+ w->SetDirty();
break;
case WE_DESTROY: