Mercurial > sdl-ios-xcode
comparison src/events/SDL_quit.c @ 1670:eef792d31de8 SDL-1.3
Work in progress. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Jun 2006 16:10:28 +0000 |
parents | 4da1ee79c9af |
children | 5daa04d862f1 |
comparison
equal
deleted
inserted
replaced
1669:9857d21967bb | 1670:eef792d31de8 |
---|---|
37 { | 37 { |
38 /* Reset the signal handler */ | 38 /* Reset the signal handler */ |
39 signal(sig, SDL_HandleSIG); | 39 signal(sig, SDL_HandleSIG); |
40 | 40 |
41 /* Signal a quit interrupt */ | 41 /* Signal a quit interrupt */ |
42 SDL_PrivateQuit(); | 42 SDL_SendQuit(); |
43 } | 43 } |
44 #endif /* HAVE_SIGNAL_H */ | 44 #endif /* HAVE_SIGNAL_H */ |
45 | 45 |
46 /* Public functions */ | 46 /* Public functions */ |
47 int | 47 int |
78 #endif /* HAVE_SIGNAL_H */ | 78 #endif /* HAVE_SIGNAL_H */ |
79 } | 79 } |
80 | 80 |
81 /* This function returns 1 if it's okay to close the application window */ | 81 /* This function returns 1 if it's okay to close the application window */ |
82 int | 82 int |
83 SDL_PrivateQuit(void) | 83 SDL_SendQuit(void) |
84 { | 84 { |
85 int posted; | 85 int posted; |
86 | 86 |
87 posted = 0; | 87 posted = 0; |
88 if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) { | 88 if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) { |