summaryrefslogtreecommitdiffstats
path: root/video/out/w32_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-27 21:53:29 +0200
committerwm4 <wm4@nowhere>2014-07-27 21:53:29 +0200
commit4c533fbb16b99c4b28fbd968d81bb0b44e3084b5 (patch)
treeceefb95dadc18ee01c29bc6c556d07ad9a8bc22c /video/out/w32_common.c
parent89391e7c949216d7edec461e9bb2cb6c787475c6 (diff)
downloadmpv-4c533fbb16b99c4b28fbd968d81bb0b44e3084b5.tar.bz2
mpv-4c533fbb16b99c4b28fbd968d81bb0b44e3084b5.tar.xz
vo: remove vo_mouse_movement() wrapper
So that VO backends don't have to access the VO just for that.
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r--video/out/w32_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 6d894000f5..33b6cdfa63 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -623,7 +623,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
if (x != w32->mouse_x || y != w32->mouse_y) {
w32->mouse_x = x;
w32->mouse_y = y;
- vo_mouse_movement(w32->vo, x, y);
+ mp_input_set_mouse_pos(w32->input_ctx, x, y);
}
break;
}
@@ -664,7 +664,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
mouse_button |= mod_state(w32);
mp_input_put_key(w32->input_ctx, mouse_button);
- if (w32->opts->enable_mouse_movements) {
+ if (mp_input_mouse_enabled(w32->input_ctx)) {
int x = GET_X_LPARAM(lParam);
int y = GET_Y_LPARAM(lParam);