Make SDL_QuitRequested() return an SDL_bool
authorSam Lantinga <slouken@libsdl.org>
Sun, 12 Jun 2011 12:23:39 -0400
changeset 5553418675ebba17
parent 5552 2167a41feefe
child 5554 4b4258be8699
Make SDL_QuitRequested() return an SDL_bool
include/SDL_quit.h
     1.1 --- a/include/SDL_quit.h	Mon Jun 06 12:20:04 2011 -0400
     1.2 +++ b/include/SDL_quit.h	Sun Jun 12 12:23:39 2011 -0400
     1.3 @@ -53,6 +53,6 @@
     1.4  /* There are no functions directly affecting the quit event */
     1.5  
     1.6  #define SDL_QuitRequested() \
     1.7 -        (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT))
     1.8 +        (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0))
     1.9  
    1.10  #endif /* _SDL_quit_h */