Latest flickering Activity
I'm no SDL guru but I see a problem in your update (except for that it should be handleEvents and not HandlerEvents). You don't poll for all events but only for 1 and so there might be events in the background which involve those flickering. The usual game loop looks like this
while(run)
{
while…
You can use those, but then you have to call ValidateRect manually.
Advertisement
Advertisement
Advertisement