Skip to content

Commit

Permalink
Disable double buffer for Milan. Also set current width,height after …
Browse files Browse the repository at this point in the history
…we read it.
  • Loading branch information
pmandin committed Oct 10, 2009
1 parent 601f2b2 commit f98dbc7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f98dbc7

Please sign in to comment.