diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-25 16:13:57 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-25 16:13:57 +0000 |
commit | 14c018a80f4908a6540e76e08047dcbf6d9dc059 (patch) | |
tree | 37cc35c4d060727a66a696bc677689bf6fda4c78 /libvo/x11_common.c | |
parent | 38505822c7914c60fbbd003f00c4176500547444 (diff) | |
download | mpv-14c018a80f4908a6540e76e08047dcbf6d9dc059.tar.bz2 mpv-14c018a80f4908a6540e76e08047dcbf6d9dc059.tar.xz |
Avoid duplicating mouse-movement command-generation code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31091 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index ff5b84f998..525772ace1 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -873,12 +873,7 @@ int vo_x11_check_events(Display * mydisplay) } break; case MotionNotify: - if(enable_mouse_movements) - { - char cmd_str[40]; - sprintf(cmd_str,"set_mouse_pos %i %i",Event.xmotion.x, Event.xmotion.y); - mp_input_queue_cmd(mp_input_parse_cmd(cmd_str)); - } + vo_mouse_movement(Event.xmotion.x, Event.xmotion.y); if (vo_mouse_autohide) { |