From 76f7f3aa0d4447ab14aeeff9056e168db6bb6bca Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 4 Mar 2009 08:37:54 +0000 Subject: 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 --- libvo/x11_common.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3