Make SDL_QuitRequested() return an SDL_bool
authorSam Lantinga <slouken@libsdl.org>
Sun, 12 Jun 2011 12:23:39 -0400
changeset 5553 418675ebba17
parent 5552 2167a41feefe
child 5554 4b4258be8699
Make SDL_QuitRequested() return an SDL_bool
include/SDL_quit.h
--- a/include/SDL_quit.h	Mon Jun 06 12:20:04 2011 -0400
+++ b/include/SDL_quit.h	Sun Jun 12 12:23:39 2011 -0400
@@ -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 */