[SDL] SDL_Flip()

TomR trowt at directlink.net
Thu Feb 27 07:08:03 PST 2003


http://www.libsdl.org/pipermail/sdl/2002-February/042329.html

found via

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=sdl_flip%28%29+flicke
r


HTH

----- Original Message -----
From: "Michael G Rucker" <rucker at runbox.com>
To: <sdl at libsdl.org>
Sent: Thursday, February 27, 2003 8:55 AM
Subject: [SDL] SDL_Flip()


The game I am working on has a game loop that does SDL_PollEvent to check
for key presses, then draws a background image, draws about 72 pieces, and
then draws a selector.  The problem is that it flickers very badly.  I don't
know how to explain it but it is a very very fast flicker.

I saw a tutorial that used SDL_Flip() and so I put that in there and it
makes no difference.  I have SDL_DOUBLEBUF set and SDL_Flip() is returning 0
every time.

How do you prevent the flickering when it redrawing so fast?

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl






More information about the SDL mailing list