|
|
|
@ -56,7 +56,7 @@ static int event_watcher(void* data, SDL_Event* event) {
|
|
|
|
|
|
|
|
|
|
|
|
static void event_loop(void) {
|
|
|
|
static void event_loop(void) {
|
|
|
|
#ifdef CONTINUOUS_RESIZING_WORKAROUND
|
|
|
|
#ifdef CONTINUOUS_RESIZING_WORKAROUND
|
|
|
|
SDL_AddEventWatch(event_watcher, screen.window);
|
|
|
|
SDL_AddEventWatch(event_watcher, NULL);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
SDL_Event event;
|
|
|
|
SDL_Event event;
|
|
|
|
while (SDL_WaitEvent(&event)) {
|
|
|
|
while (SDL_WaitEvent(&event)) {
|
|
|
|
|