comparison src/video/xbios/SDL_xbios.c @ 311:2847fd83f115

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.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 20 Mar 2002 02:24:29 +0000
parents f6ffac90895c
children bff64eba7721
comparison
equal deleted inserted replaced
310:c97c1d3b3b5c 311:2847fd83f115
652 652
653 Setscreen(-1,XBIOS_screens[XBIOS_fbnum],-1); 653 Setscreen(-1,XBIOS_screens[XBIOS_fbnum],-1);
654 Vsync(); 654 Vsync();
655 655
656 if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) { 656 if ((surface->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF) {
657 XBIOS_fbnum ^= 1; 657 XBIOS_fbnum ^= 1;
658 if ((surface->format->BitsPerPixel) > 8) {
659 surface->pixels=XBIOS_screens[XBIOS_fbnum];
660 }
658 } 661 }
659 662
660 return(0); 663 return(0);
661 } 664 }
662 665