From 05203587b57c086d3891d3f4a336db00d52050b8 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 6 Feb 2013 17:51:05 +0000 Subject: (svn r24975) -Fix [FS#5463]: Additional zoom in levels could glitch by a few pixels due to incorrect rounding. --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index eac16a6e6..bfcc8d9d1 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1051,7 +1051,7 @@ static void ViewportAddLandscape() /* determine size of area */ { Point pt = RemapCoords(x, y, 241); - width = (_vd.dpi.left + _vd.dpi.width - pt.x + 95 * ZOOM_LVL_BASE) >> (6 + ZOOM_LVL_SHIFT); + width = (_vd.dpi.left + _vd.dpi.width - pt.x + 96 * ZOOM_LVL_BASE - 1) >> (6 + ZOOM_LVL_SHIFT); height = (_vd.dpi.top + _vd.dpi.height - pt.y) >> (5 + ZOOM_LVL_SHIFT) << 1; } -- cgit v1.2.3-70-g09d2