[MPlayer-cvslog] r28806 - trunk/libvo/x11_common.c

reimar subversion at mplayerhq.hu
Wed Mar 4 09:37:55 CET 2009


Author: reimar
Date: Wed Mar  4 09:37:54 2009
New Revision: 28806

Log:
Make sure vo_x11_create_vo_window sets vo_dwidth and vo_dheight right
when we were in fullscreen mode and stay there.

Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Wed Mar  4 09:11:42 2009	(r28805)
+++ trunk/libvo/x11_common.c	Wed Mar  4 09:37:54 2009	(r28806)
@@ -1135,6 +1135,12 @@ void vo_x11_create_vo_window(XVisualInfo
   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);



More information about the MPlayer-cvslog mailing list