Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Send the SDL_QUIT when last window is destroyed, not during its close…

… event.
  • Loading branch information
icculus committed Aug 8, 2013
1 parent 760d638 commit eb8ec6735aa4b69909110e2279bcdd7e13cb4fc1

File 2 of 2 in eb8ec67

@@ -2210,6 +2210,11 @@ SDL_DestroyWindow(SDL_Window * window)
}

SDL_free(window);

if (_this->windows == NULL) {
/* This is the last window in the list so send the SDL_QUIT event */
SDL_SendQuit();
}
}

SDL_bool

0 comments on commit eb8ec67

Please sign in to comment.