forked from mirror/OpenTTD
(svn r9885) -Fix r9846: some last bitshifts with zoom-levels that were forgotten
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
This commit is contained in:
@@ -2425,8 +2425,8 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
|
||||
_scrolling_viewport = false;
|
||||
}
|
||||
|
||||
WP(w, vp_d).scrollpos_x += e->we.scroll.delta.x << vp->zoom;
|
||||
WP(w, vp_d).scrollpos_y += e->we.scroll.delta.y << vp->zoom;
|
||||
WP(w, vp_d).scrollpos_x += ScaleByZoom(e->we.scroll.delta.x, vp->zoom);
|
||||
WP(w, vp_d).scrollpos_y += ScaleByZoom(e->we.scroll.delta.y, vp->zoom);
|
||||
} break;
|
||||
|
||||
case WE_MOUSEWHEEL:
|
||||
|
Reference in New Issue
Block a user