Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
atari:xbios: Add missing code.
  • Loading branch information
pmandin committed Jul 31, 2014
1 parent 2c346e3 commit a9d5fae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video/xbios/SDL_xbios_ctpci.c
Expand Up @@ -296,10 +296,14 @@ static void updateRects(_THIS, int numrects, SDL_Rect *rects)
}
}

VsetScreen(-1L, -1L, VN_MAGIC, CMD_FLIPPAGE);
Vsync();

if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
XBIOS_fbnum ^= 1;
if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
surface->pixels=XBIOS_screens[XBIOS_fbnum];
}
}
}

Expand All @@ -317,6 +321,9 @@ static int flipHWSurface(_THIS, SDL_Surface *surface)

if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
XBIOS_fbnum ^= 1;
if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
surface->pixels=XBIOS_screens[XBIOS_fbnum];
}
}

return(0);
Expand Down

0 comments on commit a9d5fae

Please sign in to comment.