mirror of
https://github.com/yawut/SDL.git
synced 2026-04-23 09:07:30 -05:00
Date: Fri, 15 Mar 2002 18:24:59 GMT+1
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.
This commit is contained in:
parent
168be7ea37
commit
ae7fc0d9ac
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user