comparison libvo/x11_common.c @ 27887:47385b5c0613

Set modeline_width/height to sane values in vo_vm_switch even when the XF86VidMode extension is not available.
author reimar
date Sat, 15 Nov 2008 18:11:10 +0000
parents 9829cfa41d6d
children 08a5ccceb21a
comparison
equal deleted inserted replaced
27886:e38ae03895c9 27887:47385b5c0613
1756 { 1756 {
1757 XF86VidModeQueryVersion(mDisplay, &vm_ver, &vm_rev); 1757 XF86VidModeQueryVersion(mDisplay, &vm_ver, &vm_rev);
1758 mp_msg(MSGT_VO, MSGL_V, "XF86VidMode extension v%i.%i\n", vm_ver, 1758 mp_msg(MSGT_VO, MSGL_V, "XF86VidMode extension v%i.%i\n", vm_ver,
1759 vm_rev); 1759 vm_rev);
1760 have_vm = 1; 1760 have_vm = 1;
1761 } else 1761 } else {
1762 mp_msg(MSGT_VO, MSGL_WARN, 1762 mp_msg(MSGT_VO, MSGL_WARN,
1763 "XF86VidMode extension not available.\n"); 1763 "XF86VidMode extension not available.\n");
1764 *modeline_width = vo_screenwidth;
1765 *modeline_height = vo_screenheight;
1766 }
1764 1767
1765 if (have_vm) 1768 if (have_vm)
1766 { 1769 {
1767 if (vidmodes == NULL) 1770 if (vidmodes == NULL)
1768 XF86VidModeGetAllModeLines(mDisplay, mScreen, &modecount, 1771 XF86VidModeGetAllModeLines(mDisplay, mScreen, &modecount,