forked from mirror/OpenTTD
(svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that
-Codechange: use always 'e' for WindowsEvent, neverr 'we'
This commit is contained in:
@@ -1052,6 +1052,10 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e)
|
||||
WP(w, vp_d).scrollpos_x += e->scroll.delta.x << vp->zoom;
|
||||
WP(w, vp_d).scrollpos_y += e->scroll.delta.y << vp->zoom;
|
||||
} break;
|
||||
|
||||
case WE_MOUSEWHEEL:
|
||||
ZoomInOrOutToCursorWindow(e->wheel.wheel < 0, w);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user