]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
prvm_edict: Implement PRVM_ED_FindGlobalEval
[xonotic/darkplaces.git] / vid_sdl.c
index b2c007bc4179ea1c179abb93d399a56e4db4e366..9b25807965a9f0889022c5b175d31816574008e4 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1076,7 +1076,7 @@ void Sys_SendKeyEvents( void )
 #ifdef DEBUGSDLEVENTS
                                Con_DPrintf("SDL_Event: SDL_QUIT\n");
 #endif
-                               Sys_Quit(0);
+                               host.state = host_shutdown;
                                break;
                        case SDL_KEYDOWN:
                        case SDL_KEYUP:
@@ -1202,7 +1202,7 @@ void Sys_SendKeyEvents( void )
                                                vid_hasfocus = false;
                                                break;
                                        case SDL_WINDOWEVENT_CLOSE:
-                                               Sys_Quit(0);
+                                               host.state = host_shutdown;
                                                break;
                                        }
                                }
@@ -1475,8 +1475,8 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
        // https://trello.com/c/j56vUcwZ/81-centered-vs-undefined-window-position
        int xPos = SDL_WINDOWPOS_UNDEFINED;
        int yPos = SDL_WINDOWPOS_UNDEFINED;
-#ifndef USE_GLES2
        int i;
+#ifndef USE_GLES2
        const char *drivername;
 #endif