[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.163,1.164
Attila Kinali CVS
syncmail at mplayerhq.hu
Tue Feb 24 21:08:20 CET 2004
CVS change done by Attila Kinali CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv25604
Modified Files:
x11_common.c
Log Message:
set the aspect of the window to the correct values given by aspect()
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -r1.163 -r1.164
--- x11_common.c 24 Feb 2004 18:17:05 -0000 1.163
+++ x11_common.c 24 Feb 2004 20:08:18 -0000 1.164
@@ -809,10 +809,13 @@
if(vo_x11_keepaspect)
{
vo_hint.flags |= PAspect;
- vo_hint.min_aspect.x = width;
- vo_hint.min_aspect.y = height;
- vo_hint.max_aspect.x = width;
- vo_hint.max_aspect.y = height;
+
+ aspect(&vo_hint.min_aspect.x, &vo_hint.min_aspect.y, vo_fs);
+ vo_hint.max_aspect.x = vo_hint.min_aspect.x;
+ vo_hint.max_aspect.y = vo_hint.min_aspect.y;
+
+ mp_msg(MSGT_VO, MSGL_V, "[x11] window aspect set to x: %d, y: %d\n",
+ vo_hint.min_aspect.x, vo_hint.min_aspect.y);
}
vo_hint.x=x; vo_hint.y=y; vo_hint.width=width; vo_hint.height=height;
More information about the MPlayer-cvslog
mailing list