summaryrefslogtreecommitdiff
path: root/jouer.c
diff options
context:
space:
mode:
Diffstat (limited to 'jouer.c')
-rw-r--r--jouer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jouer.c b/jouer.c
index 2a444e0..52a73d6 100644
--- a/jouer.c
+++ b/jouer.c
@@ -171,6 +171,7 @@ enum action_state_t select_target(struct action_params_t *params, const struct a
update_selected_target(surfaces, positions, &target);
SDL_Flip(surfaces->Pecran);
+ while (SDL_PollEvent(&event));
for (;;) {
SDL_WaitEvent(&event);
@@ -250,6 +251,7 @@ enum action_state_t dig_entry(const struct entry_t *entries, int cnt_entries, st
update_list_entries(params->surfaces, params->positions, entries, cnt_entries, selection);
+ while (SDL_PollEvent(&event));
for (;;) {
SDL_WaitEvent(&event);