Mercurial > mplayer.hg
diff libvo/vo_xv.c @ 8692:604f0cde816c
X11 window aspect patch by Arnaud Boulan <boulan@iie.cnam.fr>
adds 2 options: -keepaspect (default) and -nokeepaspect
tested with icewm and enlightenment
author | attila |
---|---|
date | Wed, 01 Jan 2003 12:02:49 +0000 |
parents | 5b39e79af5fe |
children | a9170a2ab0a4 |
line wrap: on
line diff
--- a/libvo/vo_xv.c Wed Jan 01 11:38:00 2003 +0000 +++ b/libvo/vo_xv.c Wed Jan 01 12:02:49 2003 +0000 @@ -387,6 +387,8 @@ } else if ( !(flags&1) ) XMoveResizeWindow( mDisplay,vo_window,hint.x,hint.y,hint.width,hint.height ); + vo_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); + if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); vo_gc = XCreateGC(mDisplay, vo_window, 0L, &xgcv); XFlush(mDisplay);