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

Ulion ulion2002 at gmail.com
Thu Dec 20 13:01:07 CET 2007


2007/12/19, Ulion <ulion2002 at gmail.com>:
> 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.

Commited.

-- 
Ulion



More information about the MPlayer-dev-eng mailing list