[SDL] SDL_Flip question about buffer contents

David Olsen jolynsbass at gmail.com
Fri Apr 11 14:12:08 PDT 2008


Fantastic! I use to try and mess around with hardware surface, but they are 
really just more trouble than they are worth, imo. And any faster blits are 
negated by alpha-blending. Software for the win! Thanks for the info.
-Dave

----- Original Message ----- 
From: "Solra Bizna" <sbizna at tejat.net>
To: "A list for developers using the SDL library. (includes SDL-announce)" 
<sdl at lists.libsdl.org>
Sent: Friday, April 11, 2008 2:22 AM
Subject: Re: [SDL] SDL_Flip question about buffer contents


> On Wed, Apr 9, 2008 at 10:10 PM, David Olsen <jolynsbass at gmail.com> wrote:
>> If I'm exclusively dealing with software surfaces, do I have any sort of
>> guarantee as to what is in the video buffer after a call to
>> SDL_Flip(screen)?
> When your screen is a software surface, SDL is shadowing it and
> handles all scary details for you. Anything you put in screen->pixels
> stays in screen->pixels and doesn't get displayed until you UpdateRect
> or Flip. Stuff that got UpdateRect'd or Flip'd onto the screen will
> never be lost track of.
> -:sigma.SB
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org 



More information about the SDL mailing list