[MPlayer-dev-eng] [PATCH] Keep window aspect ratio when resizing

Arnaud Boulan boulan at iie.cnam.fr
Tue Dec 17 17:20:40 CET 2002


On Tuesday 17 December 2002 15:25, Moritz Bunkus wrote:
> > Here is a small patch that implements a feature requested by a few
> > people: keeping window aspect ratio when resizing.
> > It works by just giving the correct aspect ratio hints to the window
> > manager.
>
> Such a patch is badly needed. Unfortunately it does not always work: it
> works with mplayer/xv but not with gmplayer/xv (icewm here).
>
> Also you should make this feature depend on a command line switch.
> Perhaps the user doesn't want to be restricted to a specific AR?

I made a new version which should work even in gui mode.
Also, I added a new command-line switch, -keep_aspect_ratio or
-nokeep_aspect_ratio

I tested it with a few window managers, and unfortunately some of them 
still do not understand aspect ratio hints...

Arnaud

-------------- next part --------------
A non-text attachment was scrubbed...
Name: keep_aspect_resize-2.diff
Type: text/x-diff
Size: 4209 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021217/9522cc4c/attachment.diff>


More information about the MPlayer-dev-eng mailing list