Mercurial > sdl-ios-xcode
changeset 4316:7b27a7fc4fdf SDL-1.2
Disable double buffer for Milan. Also set current width,height after we read it.
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sat, 10 Oct 2009 10:28:05 +0000 |
parents | d1c0ac95d023 |
children | 719faf118c38 |
files | src/video/xbios/SDL_xbios.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }