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 43167b27a7fc4fdf
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
     1.1 --- a/src/video/xbios/SDL_xbios.c	Sat Oct 10 10:17:51 2009 +0000
     1.2 +++ b/src/video/xbios/SDL_xbios.c	Sat Oct 10 10:28:05 2009 +0000
     1.3 @@ -495,14 +495,15 @@
     1.4  
     1.5  				/* Read infos about current mode */ 
     1.6  				VsetScreen(-1, &XBIOS_oldvmode, MI_MAGIC, CMD_GETMODE);
     1.7 -				this->info.current_w = si.scrWidth;
     1.8 -				this->info.current_h = si.scrHeight;
     1.9  
    1.10  				si.size = sizeof(SCREENINFO);
    1.11  				si.devID = XBIOS_oldvmode;
    1.12  				si.scrFlags = 0;
    1.13  				VsetScreen(-1, &si, MI_MAGIC, CMD_GETINFO);
    1.14  
    1.15 +				this->info.current_w = si.scrWidth;
    1.16 +				this->info.current_h = si.scrHeight;
    1.17 +
    1.18  				XBIOS_oldnumcol = 0;
    1.19  				if (si.scrFlags & SCRINFO_OK) {
    1.20  					if (si.scrPlanes <= 8) {
    1.21 @@ -717,7 +718,7 @@
    1.22  		}
    1.23  	}
    1.24  #endif
    1.25 -	if (flags & SDL_DOUBLEBUF) {
    1.26 +	if ((flags & SDL_DOUBLEBUF) && ((XBIOS_cvdo>>16) != VDO_MILAN)) {
    1.27  		num_buffers = 2;
    1.28  		modeflags |= SDL_DOUBLEBUF;
    1.29  	}