Skip to content

Commit

Permalink
Date: Fri, 15 Mar 2002 18:24:59 GMT+1
Browse files Browse the repository at this point in the history
From: Patrice Mandin <pmandin@caramail.com>
Subject: [SDL] [PATCH] Atari port, bug in xbios driver driver

Hello,
This patch correct a stupid mistake in the FlipHWSurface
function, where I forgot to update surface->pixels when
using a double buffered surface.
  • Loading branch information
slouken committed Mar 20, 2002
1 parent a57bb1d commit 482b1c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/xbios/SDL_xbios.c
Expand Up @@ -654,7 +654,10 @@ static int XBIOS_FlipHWSurface(_THIS, SDL_Surface *surface)
Vsync();

if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
XBIOS_fbnum ^= 1;
XBIOS_fbnum ^= 1;
if ((surface->format->BitsPerPixel) > 8) {
surface->pixels=XBIOS_screens[XBIOS_fbnum];
}
}

return(0);
Expand Down

0 comments on commit 482b1c6

Please sign in to comment.