projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added fix to prevent Windows from complaining about program not responding
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 4f90a2d120835da09bda46a89f3877979b700ed5..6d2b222a5f05ecc69972e056fb7f1261a5ce0e8e 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-1507,6
+1507,12
@@
void PeekEvent(Event *event)
#endif
}
+void CheckQuitEvent(void)
+{
+ if (SDL_QuitRequested())
+ program.exit_function(0);
+}
+
Key GetEventKey(KeyEvent *event, boolean with_modifiers)
{
#if defined(TARGET_SDL2)