summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 18:11:10 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 18:11:10 +0000
commitebff32237b0957f3e794a2a03f5600e43a580f7e (patch)
tree7376068242cc3d86be800bfad587dfeaae80e38d /libvo
parent8b0b5bee7791abaece30c1fa456d3380e6b0877d (diff)
downloadmpv-ebff32237b0957f3e794a2a03f5600e43a580f7e.tar.bz2
mpv-ebff32237b0957f3e794a2a03f5600e43a580f7e.tar.xz
Set modeline_width/height to sane values in vo_vm_switch even when
the XF86VidMode extension is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27921 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index c70e83352f..cfbdc83d9a 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1758,9 +1758,12 @@ void vo_vm_switch(uint32_t X, uint32_t Y, int *modeline_width,
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)
{