Fix issue 398 : Grafx2 not detecting mouse button release.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1648 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2010-11-09 22:21:30 +00:00
parent 9d3defc477
commit aeb7f26809

View File

@ -781,7 +781,7 @@ int Get_input(int sleep_time)
// Process as much events as possible without redrawing the screen. // Process as much events as possible without redrawing the screen.
// This mostly allows us to merge mouse events for people with an high // This mostly allows us to merge mouse events for people with an high
// resolution mouse // 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) switch(event.type)
{ {