Disable double buffer for Milan. Also set current width,height after we read it. SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sat, 10 Oct 2009 10:28:05 +0000
branchSDL-1.2
changeset 4316 7b27a7fc4fdf
parent 4315 d1c0ac95d023
child 4317 719faf118c38
Disable double buffer for Milan. Also set current width,height after we read it.
src/video/xbios/SDL_xbios.c
--- a/src/video/xbios/SDL_xbios.c	Sat Oct 10 10:17:51 2009 +0000
+++ b/src/video/xbios/SDL_xbios.c	Sat Oct 10 10:28:05 2009 +0000
@@ -495,14 +495,15 @@
 
 				/* Read infos about current mode */ 
 				VsetScreen(-1, &XBIOS_oldvmode, MI_MAGIC, CMD_GETMODE);
-				this->info.current_w = si.scrWidth;
-				this->info.current_h = si.scrHeight;
 
 				si.size = sizeof(SCREENINFO);
 				si.devID = XBIOS_oldvmode;
 				si.scrFlags = 0;
 				VsetScreen(-1, &si, MI_MAGIC, CMD_GETINFO);
 
+				this->info.current_w = si.scrWidth;
+				this->info.current_h = si.scrHeight;
+
 				XBIOS_oldnumcol = 0;
 				if (si.scrFlags & SCRINFO_OK) {
 					if (si.scrPlanes <= 8) {
@@ -717,7 +718,7 @@
 		}
 	}
 #endif
-	if (flags & SDL_DOUBLEBUF) {
+	if ((flags & SDL_DOUBLEBUF) && ((XBIOS_cvdo>>16) != VDO_MILAN)) {
 		num_buffers = 2;
 		modeflags |= SDL_DOUBLEBUF;
 	}