src/video/xbios/SDL_xbios.c
changeset 311 2847fd83f115
parent 297 f6ffac90895c
child 314 bff64eba7721
--- 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);