(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**.

This commit is contained in:
rubidium
2009-01-06 22:37:42 +00:00
parent 6138f6a2bb
commit 19edb3ccc3
4 changed files with 89 additions and 134 deletions

View File

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