Skip to content
Permalink
Browse files

Disable double buffer for Milan. Also set current width,height after …

…we read it.
  • Loading branch information
pmandin committed Oct 10, 2009
1 parent 601f2b2 commit f98dbc7079ab37d440069b3545a4f7c612b7948b
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/video/xbios/SDL_xbios.c
@@ -495,14 +495,15 @@ static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat)

/* 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 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
}
}
#endif
if (flags & SDL_DOUBLEBUF) {
if ((flags & SDL_DOUBLEBUF) && ((XBIOS_cvdo>>16) != VDO_MILAN)) {
num_buffers = 2;
modeflags |= SDL_DOUBLEBUF;
}

0 comments on commit f98dbc7

Please sign in to comment.