# HG changeset patch # User reimar # Date 1251374582 0 # Node ID 23a59bb3baf48e666a15be6efe689ef4973b66a5 # Parent 3dd6ae109bd28ad3039e1f82b2cf2e7df1587d1f First attempts at supporting -fs with -wid, -vo gl on X11 only so far diff -r 3dd6ae109bd2 -r 23a59bb3baf4 libvo/vo_gl.c --- a/libvo/vo_gl.c Thu Aug 27 11:04:52 2009 +0000 +++ b/libvo/vo_gl.c Thu Aug 27 12:03:02 2009 +0000 @@ -1149,6 +1149,9 @@ if (scaled_osd) {r->w = image_width; r->h = image_height;} else if (vo_fs) { r->w = vo_screenwidth; r->h = vo_screenheight; + if (WinID >= 0) { + r->w = vo_dwidth; r->h = vo_dheight; + } r->ml = r->mr = ass_border_x; r->mt = r->mb = ass_border_y; } else { diff -r 3dd6ae109bd2 -r 23a59bb3baf4 libvo/x11_common.c --- a/libvo/x11_common.c Thu Aug 27 11:04:52 2009 +0000 +++ b/libvo/x11_common.c Thu Aug 27 12:03:02 2009 +0000 @@ -1086,6 +1086,7 @@ { XGCValues xgcv; if (WinID >= 0) { + vo_fs = flags & VOFLAG_FULLSCREEN; vo_window = WinID ? (Window)WinID : mRootWin; if (col_map != CopyFromParent) { unsigned long xswamask = CWColormap; @@ -1343,7 +1344,11 @@ { int x, y, w, h; - if (WinID >= 0 || vo_fs_flip) + if (WinID >= 0) { + vo_fs = !vo_fs; + return; + } + if (vo_fs_flip) return; if (vo_fs)