(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:
truelight
2007-05-19 23:52:04 +00:00
parent 6954045bb4
commit 49aa3bedfb
4 changed files with 15 additions and 12 deletions

View File

@@ -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: