Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make SDL_QuitRequested() return an SDL_bool
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
include/SDL_quit.h
|
@@ -53,6 +53,6 @@ |
|
|
/* There are no functions directly affecting the quit event */ |
|
|
|
|
|
#define SDL_QuitRequested() \ |
|
|
(SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT)) |
|
|
(SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) |
|
|
|
|
|
#endif /* _SDL_quit_h */ |