mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes
This commit is contained in:
parent
51b9091689
commit
21308de6cb
|
@ -1649,10 +1649,10 @@ static void MarkViewportDirty(const ViewPort *vp, int left, int top, int right,
|
|||
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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue