Changeset - r22505:792ee581d40b
[Not reviewed]
master
0 1 0
frosch - 7 years ago 2016-12-25 17:56:57
frosch@openttd.org
(svn r27712) -Codechange: Reduce recursions in DrawOverlappedWindow by limiting the area to the window bounds first. (adf88)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -942,7 +942,7 @@ void DrawOverlappedWindowForAll(int left
 
				left < w->left + w->width &&
 
				top < w->top + w->height) {
 
			/* Window w intersects with the rectangle => needs repaint */
 
			DrawOverlappedWindow(w, left, top, right, bottom);
 
			DrawOverlappedWindow(w, max(left, w->left), max(top, w->top), min(right, w->left + w->width), min(bottom, w->top + w->height));
 
		}
 
	}
 
}
0 comments (0 inline, 0 general)