diff options
author | smatz <smatz@openttd.org> | 2009-01-03 15:03:28 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-03 15:03:28 +0000 |
commit | 21308de6cb2995912d67af4ae704a8870d90e156 (patch) | |
tree | 1d5f495eb14ed7e6ff4d3cf880b0552dc4aa223c /src | |
parent | 51b90916892b03374a7867a79c5bf291043bb96e (diff) | |
download | openttd-21308de6cb2995912d67af4ae704a8870d90e156.tar.xz |
(svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes
Diffstat (limited to 'src')
-rw-r--r-- | src/viewport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index a6cacd24b..0622f85a3 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -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 ); } |