Changeset - r10549:e1280502463a
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2009-01-03 15:03:28
smatz@openttd.org
(svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -1649,10 +1649,10 @@ static void MarkViewportDirty(const View
 
	if (top >= vp->virtual_height) return;
 

	
 
	SetDirtyBlocks(
 
		UnScaleByZoom(left, vp->zoom) + vp->left,
 
		UnScaleByZoom(top, vp->zoom) + vp->top,
 
		UnScaleByZoom(right, vp->zoom) + vp->left,
 
		UnScaleByZoom(bottom, vp->zoom) + vp->top
 
		UnScaleByZoomLower(left, vp->zoom) + vp->left,
 
		UnScaleByZoomLower(top, vp->zoom) + vp->top,
 
		UnScaleByZoom(right, vp->zoom) + vp->left + 1,
 
		UnScaleByZoom(bottom, vp->zoom) + vp->top + 1
 
	);
 
}
 

	
0 comments (0 inline, 0 general)