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

reimar subversion at mplayerhq.hu
Sat Nov 15 19:11:10 CET 2008


Author: reimar
Date: Sat Nov 15 19:11:10 2008
New Revision: 27921

Log:
Set modeline_width/height to sane values in vo_vm_switch even when
the XF86VidMode extension is not available.


Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	(original)
+++ trunk/libvo/x11_common.c	Sat Nov 15 19:11:10 2008
@@ -1758,9 +1758,12 @@ void vo_vm_switch(uint32_t X, uint32_t Y
         mp_msg(MSGT_VO, MSGL_V, "XF86VidMode extension v%i.%i\n", vm_ver,
                vm_rev);
         have_vm = 1;
-    } else
+    } else {
         mp_msg(MSGT_VO, MSGL_WARN,
                "XF86VidMode extension not available.\n");
+        *modeline_width = vo_screenwidth;
+        *modeline_height = vo_screenheight;
+    }
 
     if (have_vm)
     {



More information about the MPlayer-cvslog mailing list