Mercurial > mplayer.hg
changeset 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 | e38ae03895c9 |
children | 2418fb292375 |
files | libvo/x11_common.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {