diff options
Diffstat (limited to 'libvo/w32_common.c')
-rw-r--r-- | libvo/w32_common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 651386dbd8..bb420d87c9 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -159,12 +159,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l mplayer_put_key(MOUSE_BTN2); break; case WM_MOUSEMOVE: - if (enable_mouse_movements) { - char cmd_str[40]; - snprintf(cmd_str, sizeof(cmd_str), "set_mouse_pos %i %i", - GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)); - mp_input_queue_cmd(mp_input_parse_cmd(cmd_str)); - } + vo_mouse_movement(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)); break; case WM_MOUSEWHEEL: if (!vo_nomouse_input) { |