diff options
author | rubidium <rubidium@openttd.org> | 2009-01-06 22:37:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-06 22:37:42 +0000 |
commit | 19edb3ccc3146c8ce4c739dadb2b53b1ed760850 (patch) | |
tree | d95cb0751c055d7052bc2f0af8a848c6476c6125 /src/viewport.cpp | |
parent | 6138f6a2bbc5c7d63c6f5b3b0138931d8d59cdb3 (diff) | |
download | openttd-19edb3ccc3146c8ce4c739dadb2b53b1ed760850.tar.xz |
(svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 0d97d8cd0..8d2200f29 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1666,10 +1666,9 @@ static void MarkViewportDirty(const ViewPort *vp, int left, int top, int right, */ void MarkAllViewportsDirty(int left, int top, int right, int bottom) { - Window **wz; - - FOR_ALL_WINDOWS(wz) { - ViewPort *vp = (*wz)->viewport; + Window *w; + FOR_ALL_WINDOWS_FROM_BACK(w) { + ViewPort *vp = w->viewport; if (vp != NULL) { assert(vp->width != 0); MarkViewportDirty(vp, left, top, right, bottom); |