(svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details -Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out) -Fix r9845: missed some int -> ZoomLevel
This commit is contained in:
@@ -479,10 +479,10 @@ static void LargeWorldCallback(void *userdata, Pixel *buf, uint y, uint pitch, u
|
||||
left += wx;
|
||||
|
||||
ViewportDoDraw(vp,
|
||||
((left - wx - vp->left) << vp->zoom) + vp->virtual_left,
|
||||
((y - vp->top) << vp->zoom) + vp->virtual_top,
|
||||
((left - vp->left) << vp->zoom) + vp->virtual_left,
|
||||
(((y + n) - vp->top) << vp->zoom) + vp->virtual_top
|
||||
ScaleByZoom(left - wx - vp->left, vp->zoom) + vp->virtual_left,
|
||||
ScaleByZoom(y - vp->top, vp->zoom) + vp->virtual_top,
|
||||
ScaleByZoom(left - vp->left, vp->zoom) + vp->virtual_left,
|
||||
ScaleByZoom((y + n) - vp->top, vp->zoom) + vp->virtual_top
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user