summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-24 18:17:05 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-24 18:17:05 +0000
commite3c7c5dc1158be35604617adb51d58986ffee6d4 (patch)
treeb7ca5192eefcb2d663581f3a6f77ebf938de8174 /libvo
parent52f977089978228235a11afe2c93d836b4f1fca8 (diff)
downloadmpv-e3c7c5dc1158be35604617adb51d58986ffee6d4.tar.bz2
mpv-e3c7c5dc1158be35604617adb51d58986ffee6d4.tar.xz
set min width/height
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11996 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index ab40c596d7..2a33e69bc1 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -821,6 +821,12 @@ void vo_x11_sizehint( int x, int y, int width, int height, int max )
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 );
}