mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 06:28:29 +00:00
Note it is safe to do drawing in response to SDL_EVENT_WINDOW_EXPOSED
This commit is contained in:
@@ -1396,7 +1396,7 @@ typedef bool (SDLCALL *SDL_EventFilter)(void *userdata, SDL_Event *event);
|
|||||||
* allows selective filtering of dynamically arriving events.
|
* allows selective filtering of dynamically arriving events.
|
||||||
*
|
*
|
||||||
* **WARNING**: Be very careful of what you do in the event filter function,
|
* **WARNING**: Be very careful of what you do in the event filter function,
|
||||||
* as it may run in a different thread!
|
* as it may run in a different thread! The exception is handling of SDL_EVENT_WINDOW_EXPOSED, which is guaranteed to be sent from the OS on the main thread and you are expected to redraw your window in response to this event.
|
||||||
*
|
*
|
||||||
* On platforms that support it, if the quit event is generated by an
|
* On platforms that support it, if the quit event is generated by an
|
||||||
* interrupt signal (e.g. pressing Ctrl-C), it will be delivered to the
|
* interrupt signal (e.g. pressing Ctrl-C), it will be delivered to the
|
||||||
|
Reference in New Issue
Block a user