[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.162,1.163
Attila Kinali CVS
syncmail at mplayerhq.hu
Tue Feb 24 19:17:08 CET 2004
CVS change done by Attila Kinali CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv17983
Modified Files:
x11_common.c
Log Message:
set min width/height
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -r1.162 -r1.163
--- x11_common.c 16 Jan 2004 17:31:37 -0000 1.162
+++ x11_common.c 24 Feb 2004 18:17:05 -0000 1.163
@@ -821,6 +821,12 @@
vo_hint.max_width=width; vo_hint.max_height=height;
vo_hint.flags|=PMaxSize;
} else { vo_hint.max_width=0; vo_hint.max_height=0; }
+
+ // set min height/width to 4 to avoid off by one errors
+ // and because mga_vid requires a minial size of 4 pixel
+ vo_hint.min_width = vo_hint.min_height = 4;
+ vo_hint.flags |= PMinSize;
+
vo_hint.win_gravity=StaticGravity;
XSetWMNormalHints( mDisplay,vo_window,&vo_hint );
}
More information about the MPlayer-cvslog
mailing list