diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-04 08:37:54 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-04 08:37:54 +0000 |
commit | 76f7f3aa0d4447ab14aeeff9056e168db6bb6bca (patch) | |
tree | 6198684a181fd625e7188d164187c3784ccf9de2 /libvo | |
parent | f31339b75b176b6c0fb141a9506017b071a31a66 (diff) | |
download | mpv-76f7f3aa0d4447ab14aeeff9056e168db6bb6bca.tar.bz2 mpv-76f7f3aa0d4447ab14aeeff9056e168db6bb6bca.tar.xz |
Make sure vo_x11_create_vo_window sets vo_dwidth and vo_dheight right
when we were in fullscreen mode and stay there.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28806 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index df72ebbfdb..16a97d578c 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1135,6 +1135,12 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y, vo_x11_nofs_sizepos(vo_dx, vo_dy, width, height); if (!!vo_fs != !!(flags & VOFLAG_FULLSCREEN)) vo_x11_fullscreen(); + else if (vo_fs) { + // if we are already in fullscreen do not switch back and forth, just + // set the size values right. + vo_dwidth = vo_screenwidth; + vo_dheight = vo_screenheight; + } final: if (vo_gc != None) XFreeGC(mDisplay, vo_gc); |