projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added boundary checks for sound/music ID for some sound and music functions
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 4f90a2d120835da09bda46a89f3877979b700ed5..a87ecc837f15206351dd228e89bedcf25512a925 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-1493,9
+1493,9
@@
boolean PendingEvent(void)
return (SDL_PollEvent(NULL) ? TRUE : FALSE);
}
return (SDL_PollEvent(NULL) ? TRUE : FALSE);
}
-void
Nex
tEvent(Event *event)
+void
Wai
tEvent(Event *event)
{
{
- SDL
Nex
tEvent(event);
+ SDL
Wai
tEvent(event);
}
void PeekEvent(Event *event)
}
void PeekEvent(Event *event)
@@
-1507,6
+1507,12
@@
void PeekEvent(Event *event)
#endif
}
#endif
}
+void CheckQuitEvent(void)
+{
+ if (SDL_QuitRequested())
+ program.exit_function(0);
+}
+
Key GetEventKey(KeyEvent *event, boolean with_modifiers)
{
#if defined(TARGET_SDL2)
Key GetEventKey(KeyEvent *event, boolean with_modifiers)
{
#if defined(TARGET_SDL2)