# HG changeset patch # User reimar # Date 1226772670 0 # Node ID 47385b5c06130491ddd035a2bbe2b9f1739d4c30 # Parent e38ae03895c9496110be8f6638ffb7f12c9cb17c Set modeline_width/height to sane values in vo_vm_switch even when the XF86VidMode extension is not available. diff -r e38ae03895c9 -r 47385b5c0613 libvo/x11_common.c --- a/libvo/x11_common.c Sat Nov 15 17:48:27 2008 +0000 +++ b/libvo/x11_common.c Sat Nov 15 18:11:10 2008 +0000 @@ -1758,9 +1758,12 @@ 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) {