Re: SDL2: SDL_Delay() makes the window bar hidden on El Capitan

"rrohrer" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hey, I don't know if you figured this out (it's been a while since this post was made), but the issue is that the message pump isn't getting drained.

Previous versions of SDL2 / OS X seemed to handle this differently.


Code:

// replace this:
SDL_Delay(1000);

// with this:
for (int i = 0; i < 1000; ++i)
{
    SDL_PumpEvents();
    SDL_Delay(1);
}




I know it's a lame work around, but it fixes the issue of the white / hidden window bar.

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.