From aeb7f26809eb233873f185c7e69f12e7bbbd531b Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Tue, 9 Nov 2010 22:21:30 +0000 Subject: [PATCH] Fix issue 398 : Grafx2 not detecting mouse button release. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1648 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 0d1daae7..38f91172 100644 --- a/src/input.c +++ b/src/input.c @@ -781,7 +781,7 @@ int Get_input(int sleep_time) // Process as much events as possible without redrawing the screen. // This mostly allows us to merge mouse events for people with an high // resolution mouse - while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_ALLEVENTS)==1 && !user_feedback_required) + while(!user_feedback_required && SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_ALLEVENTS)==1) { switch(event.type) {