diff options
Diffstat (limited to 'jouer.c')
-rw-r--r-- | jouer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |