[MPlayer-dev-eng] [PATCH] vo_macosx support mouse movements

Ulion ulion2002 at gmail.com
Tue Dec 18 18:39:00 CET 2007


2007/12/18, Ulion <ulion2002 at gmail.com>:
> Hello,
>
> Here's a patch for vo_macosx support send mouse movements command to
> mplayer's command system. I tried another patch use vo xv's mouse
> movements output, got same result with vo_macosx's one.
>
> Notes: the y of mouse's position is reversed on my machine (mac osx
> 10.5), that mean the left bottom corner is the (0,0) position of mouse
> position related to the view, instead of normal the left top corner.
> So there's a fix code in this patch for getting the related mouse
> position to the left top corner of play view.
>
> If there's no objection, I will apply this in 2 days.

When play window got resized and not in the movie aspect and the
mplayer in keep aspect status.
The osd menu only care the display part with content (i.e. vo's input
frame region), dvdnav is also same. The black padding part in the play
window (produced by vo), should not produce mouse move event to
mplayer and vo_dwidth and vo_dheight should be the size without
paddings in the play window. So here's updated patch for vo_macosx,
with this patch, nomatter how the play window resized, the mouse
movement event should send to dvdnav or osd menu correctly.


-- 
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vo_macosx_mouse_move_event2.diff
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071219/a3d7e288/attachment.bin>


More information about the MPlayer-dev-eng mailing list