Archived

This topic is now archived and is closed to further replies.

logout

sdl : dobblebuffring

Recommended Posts

img.Blit(main.GetSurf(),0,0);
SDL_FillRect( main.GetSurf(), NULL, 0 );
SDL_Flip(main.GetSurf());
 
this is my code for drawing a simple bitmap to the screen. is this order correct ? like ; 1. blit img 2. FillRect 3. SDL_Flip() as all i get is a black screen with this code ..

Share this post


Link to post
Share on other sites