[MPlayer-dev-eng] [PATCH] -geometry support in vo_corevideo

Tim Wojtulewicz timwoj at ieee.org
Sat Dec 5 20:34:19 CET 2009


On Dec 5, 2009, at 11:48 AM, Reimar Döffinger wrote:

> On Sat, Dec 05, 2009 at 10:35:03AM -0700, Tim Wojtulewicz wrote:
>> See subject.  Includes a fix to the man page to note that corevideo supports this now.  I've only tested it on 10.6.
> 
> Also instead of using cascadeTopLeftFromPoint you should just replace
>        [window setContentSize: frame.size];
> by
>        [window setFrame: frame];


I went ahead and replaced d_height and d_width also, since that was the model I was following.

I was using cascadeTopLeftFromPoint because it takes the menu bar into account for positioning.  I had tried calling both setFrameTopLeftPoint and setFrame.  Passing a position like 10:10 leaves the window stuck to the top of the screen directly under the menubar.  If it's preferred to call setFrame, I can make it do that.  Here's an updated version for the x/y/height/width variables.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: corevideo_geometry.patch
Type: application/octet-stream
Size: 1990 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20091205/1eb8b246/attachment.obj>


More information about the MPlayer-dev-eng mailing list