[SDL] OS X + SDL_SetEventFilter = Bus Error

Sam Lantinga slouken at devolution.com
Fri Jan 4 15:16:13 PST 2008


> What happens as I see it: when I use SDL_PollEvent then SDL_VIDEORESIZE
>  gets posted to internal queue only when the button is released - so no
>  dynamic resizing - is it intended behaviour? By resorting to 
> event filter I hack the code by catching all the SDL_VideoResize messages
>  and handling it on my own. Or maybe the eventFilter handler is in another
>  thread, and the thread with the main loop gets paused when dragging...

Yes, I believe the documentation states that you should never call SDL
video API functions from the event filter thread.  It may be called from
another thread or from a hardware interrupt.

Instead you should either send another SDL event or set a global variable
or use some other messaging system to notify anyone who cares.

See ya,
	-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


More information about the SDL mailing list