changeset 19531:2effceebd29c

if double buffering is enabled, but vbeSetDisplayStart() fails, turn double buffering off (also adds support for VESA output under VMware).
author ben
date Fri, 25 Aug 2006 19:52:00 +0000
parents e8a589ebd38a
children 13599373bb02
files libvo/vo_vesa.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vesa.c	Fri Aug 25 19:31:31 2006 +0000
+++ b/libvo/vo_vesa.c	Fri Aug 25 19:52:00 2006 +0000
@@ -1022,7 +1022,12 @@
 	}
 	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];
                 clear_screen();	/* Clear screen for stupid BIOSes */