unfixed Attendre_fin_de_click, works better when buggy in fact :D

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@482 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-01-15 21:13:40 +00:00
parent 4e0cdaef12
commit f2d8cbbfe1
2 changed files with 5 additions and 3 deletions

View File

@@ -101,7 +101,9 @@ void Attendre_fin_de_click(void)
//On attend que l'utilisateur relache la souris. Tous les autres évènements
//sont ignorés
while(SDL_WaitEvent(&event))
while(SDL_PollEvent(&event)) // ça devrait être un Wait_event, mais ça foire méchament
// 1 ça bloque le prog complètement
// 2 ça marche pas quand on appuie sur espace
{
Gere_Evenement_SDL(&event);
if (event.type == SDL_MOUSEBUTTONUP)