Some parts of this message have been removed.
Learn more about Nabble's security policy.
everything in your main function starting from SDL_WaitEvent needs to be in a loop.
otherwise, SDL only processes a single event (the one you waited for with SDL_WaitEvent) and continually updates the screen using your UpdateScreen method.