Date: Fri, 15 Mar 2002 18:24:59 GMT+1
authorSam Lantinga <slouken@libsdl.org>
Wed, 20 Mar 2002 02:24:29 +0000
changeset 311 2847fd83f115
parent 310 c97c1d3b3b5c
child 312 d62b9aeaf0ea
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.
src/video/xbios/SDL_xbios.c
--- a/src/video/xbios/SDL_xbios.c	Wed Mar 20 02:21:46 2002 +0000
+++ b/src/video/xbios/SDL_xbios.c	Wed Mar 20 02:24:29 2002 +0000
@@ -654,7 +654,10 @@
 	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);