From d5e59423e19ad6c32fb9bcc24d11e3a1e7e6d5cb Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 4 Apr 2009 20:08:43 +0000 Subject: [PATCH] hopefully fix the crash issue on windows by hitting esc during loading by ignoring all key presses during loading plaque git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8862 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_screen.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cl_screen.c b/cl_screen.c index 55333781..bfd5ed0a 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -1810,6 +1810,9 @@ static void SCR_DrawLoadingScreen_SharedFinish (qboolean clear) void SCR_UpdateLoadingScreen (qboolean clear) { + keydest_t old_key_dest; + int old_key_consoleactive; + if(loadingscreentime != realtime) { loadingscreentime = realtime; @@ -1837,7 +1840,13 @@ void SCR_UpdateLoadingScreen (qboolean clear) SCR_DrawLoadingScreen_SharedFinish(clear); // this goes into the event loop, and should prevent unresponsive cursor on vista + old_key_dest = key_dest; + old_key_consoleactive = key_consoleactive; + key_dest = key_void; + key_consoleactive = false; Sys_SendKeyEvents(); + key_dest = old_key_dest; + key_consoleactive = old_key_consoleactive; } extern cvar_t cl_minfps; -- 2.39.2