Skip to main content
gamedev.net
🔒 Locked

SDL help...

Started by hemant 0 replies 250+ views
Original Post
hemant
hemant
Hi all... I have blitted main SDL_Surface(SDL_Surface *screen) with some 15 images..and now when user clicks on a particular image..that image whould be swapped with empty space... So for that i use SDL_UpdatRect(),SDL_UpDateRects().I want to update the portion of the screen where this swapping is taking place..i do not get errors during this blitting or SDL_UpdatRects() but still the actual screen remains the same..nothing is changed....
Spudder
Spudder
I''ve not used SDL_UpdateRects() much so my reply is a bit of a shot in the dark but have you tried SDL_Flip()?

Alternatively post your code which will be more useful in trying to help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.