projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
994be68
)
fixed compilation error for SDL 1.2 target
4.1.1.0
author
Holger Schemel
<info@artsoft.org>
Mon, 8 Oct 2018 06:05:57 +0000
(08:05 +0200)
committer
Holger Schemel
<info@artsoft.org>
Mon, 8 Oct 2018 06:05:57 +0000
(08:05 +0200)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index 9f18adbe8b413dce59899fe9ac17cb35cec9243a..37d7c0d72b05b7ef907324589db997b353d54312 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-349,6
+349,7
@@
void EventLoop(void)
void ClearAutoRepeatKeyEvents(void)
{
+#if defined(TARGET_SDL2)
while (PendingEvent())
{
Event next_event;
@@
-362,6
+363,7
@@
void ClearAutoRepeatKeyEvents(void)
else
break;
}
+#endif
}
void ClearEventQueue(void)