Mercurial > sdl-ios-xcode
changeset 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 | c97c1d3b3b5c |
children | d62b9aeaf0ea |
files | src/video/xbios/SDL_xbios.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);