From 13564f63216a6bbedf66994f86dc8dc6c25fca0a Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Sat, 6 Jan 2018 22:07:41 -0800 Subject: [PATCH] WIndows SDL 1.x: Increase MAXEVENTS queue size, because merely accessing the system menu triggers enough messages to overflow it in Windows 10. This makes it possible to handle WM_SYSCOMMAND again. --- vs2015/sdl/src/events/SDL_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vs2015/sdl/src/events/SDL_events.c b/vs2015/sdl/src/events/SDL_events.c index 8f23c01af91..96fa8040bd0 100644 --- a/vs2015/sdl/src/events/SDL_events.c +++ b/vs2015/sdl/src/events/SDL_events.c @@ -38,7 +38,7 @@ Uint8 SDL_ProcessEvents[SDL_NUMEVENTS]; static Uint32 SDL_eventstate = 0; /* Private data -- event queue */ -#define MAXEVENTS 128 +#define MAXEVENTS 256 static struct { SDL_mutex *lock; int active;