diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-27 12:03:02 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-27 12:03:02 +0000 |
commit | e8429f1f5b298dc340425d2c4306167b0205df4d (patch) | |
tree | d0f606698b968fb02f0ac20532fd4fc91930252c /libvo/x11_common.c | |
parent | bdf9a6321ddd69856ddfccf06678ac90c2442618 (diff) | |
download | mpv-e8429f1f5b298dc340425d2c4306167b0205df4d.tar.bz2 mpv-e8429f1f5b298dc340425d2c4306167b0205df4d.tar.xz |
First attempts at supporting -fs with -wid, -vo gl on X11 only so far
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29556 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 2e748a6767..7492fc9fdd 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1086,6 +1086,7 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y, { 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 @@ void vo_x11_fullscreen(void) { 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) |