mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 04:02:06 +00:00
if double buffering is enabled, but vbeSetDisplayStart() fails, turn double buffering off (also adds support for VESA output under VMware).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19537 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7945689e25
commit
d463c9e96d
@ -1022,7 +1022,12 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
|
|||||||
}
|
}
|
||||||
if(HAS_DGA() && vo_doublebuffering)
|
if(HAS_DGA() && vo_doublebuffering)
|
||||||
{
|
{
|
||||||
for(i=0;i<MAX_BUFFERS;i++)
|
if (VBE_OK != vbeSetDisplayStart(0, vo_vsync))
|
||||||
|
{
|
||||||
|
mp_msg(MSGT_VO,MSGL_WARN, "[VO_VESA] Can't use double buffering: changing displays failed.\n");
|
||||||
|
multi_size = 1;
|
||||||
|
}
|
||||||
|
for(i=0;i<multi_size;i++)
|
||||||
{
|
{
|
||||||
win.ptr = dga_buffer = video_base + multi_buff[i];
|
win.ptr = dga_buffer = video_base + multi_buff[i];
|
||||||
clear_screen(); /* Clear screen for stupid BIOSes */
|
clear_screen(); /* Clear screen for stupid BIOSes */
|
||||||
|
Loading…
Reference in New Issue
Block a user