mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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
This commit is contained in:
parent
8b0b5bee77
commit
ebff32237b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user