Skip to content

Commit

Permalink
atari:xbios: Keep non offseted value
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Aug 22, 2014
1 parent 74ce543 commit 6aa5629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -623,7 +623,7 @@ static void XBIOS_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
XBIOS_fbnum ^= 1;
if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
surface->pixels=((Uint8 *) XBIOS_screens[XBIOS_fbnum]) + surface->offset;
surface->pixels=XBIOS_screens[XBIOS_fbnum];
}
}
}
Expand Down Expand Up @@ -658,7 +658,7 @@ static int XBIOS_FlipHWSurface(_THIS, SDL_Surface *surface)
if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
XBIOS_fbnum ^= 1;
if ((XBIOS_current->flags & XBIOSMODE_C2P) == 0) {
surface->pixels=((Uint8 *) XBIOS_screens[XBIOS_fbnum]) + surface->offset;
surface->pixels=XBIOS_screens[XBIOS_fbnum];
}
}

Expand Down

0 comments on commit 6aa5629

Please sign in to comment.