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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40312
This commit is contained in:
parent
d551e642d0
commit
324818b56e
1 changed files with 4 additions and 1 deletions
|
@ -655,6 +655,9 @@ static int XBIOS_FlipHWSurface(_THIS, SDL_Surface *surface)
|
||||||
|
|
||||||
if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
|
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);
|
return(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue