Mercurial > sdl-ios-xcode
view src/video/uikit/jumphack.c @ 5115:686d795b1b29
When the last window is closed and the SDL_WINDOWEVENT_CLOSE event is sent, send the SDL_QUIT event.
Common.c now destroys the SDL_Window upon a SDL_WINDOWEVENT_CLOSE event to ensure that all windows get closed properly and the new code to handle the last window closes gets executed.
author | krogoway |
---|---|
date | Thu, 27 Jan 2011 15:58:30 -0600 |
parents | e8045ba3f79f |
children |
line wrap: on
line source
/* * jumphack.c * SDLiPhoneOS * */ #include "jumphack.h" /* see SDL_uikitevents.m for more info */ /* stores the information we need to jump back */ jmp_buf env; /* returns the jump environment for setting / getting purposes */ jmp_buf * jump_env(void) { return &env; }