From 1049c3b0311d1d20eebebc0535ed5b37fc6c6e3d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 12 Jun 2011 12:23:39 -0400 Subject: [PATCH] Make SDL_QuitRequested() return an SDL_bool --- include/SDL_quit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_quit.h b/include/SDL_quit.h index ef8857020..d6f11a80c 100644 --- a/include/SDL_quit.h +++ b/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 */