Mercurial > mplayer.hg
changeset 11995:78204da6a49d
set min width/height
author | attila |
---|---|
date | Tue, 24 Feb 2004 18:17:05 +0000 |
parents | a7751694c177 |
children | 398c24cecdc7 |
files | libvo/x11_common.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/x11_common.c Tue Feb 24 13:28:42 2004 +0000 +++ b/libvo/x11_common.c Tue Feb 24 18:17:05 2004 +0000 @@ -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 ); }