changeset 28771:bd24ac0d9fd8

Make sure vo_x11_create_vo_window sets vo_dwidth and vo_dheight right when we were in fullscreen mode and stay there.
author reimar
date Wed, 04 Mar 2009 08:37:54 +0000
parents 7b90cac39182
children 5e58bc4fb9db
files libvo/x11_common.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Wed Mar 04 08:11:42 2009 +0000
+++ b/libvo/x11_common.c	Wed Mar 04 08:37:54 2009 +0000
@@ -1135,6 +1135,12 @@
   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);