[SDL] Sdl 2.0.3 and Ubuntu 14.04

kj192 elte.kissjanos at gmail.com
Fri Sep 12 03:54:59 PDT 2014


Thanks It worked !!

Ryan C. Gordon wrote:
> 
> > video about what is happening:
> > I write the FPS with red color, and it will become black. The
> > application is still running, just without color.
> > https://www.youtube.com/watch?v=2NdVptj-ZbY&list=UUEaVWVFsIpYqesdWZ4HYgBQ&index=1
> > 
> 
> Ubuntu turns windows to black and white when they aren't responding to 
> window events for some time, to alert the user that the application 
> appears to be hung up.
> 
> This will go away if you put this somewhere in your drawing loop:
> 
> SDL_Event e;
> while (SDL_PollEvent(&e)) {}
> 
> Eventually you'd want to actually examine those events, but just polling 
> for them and throwing them away will fix your problem for now.
> 
> --ryan.
> 
> 
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140912/f8d30ad0/attachment-0002.htm>


More information about the SDL mailing list