Re: [AD] EVDEV mouse driver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Yep, I experience a similar problem: when I click on the 'Detect' button
> while still moving the mouse, the progress bar is already partially filled
> when it shows up. Moving the line
>
>    popup(uconvert_ascii("Move your mouse around", tmp1),
> 	uconvert_ascii("Press any key to cancel", tmp2));
>
> before the flush loop seems to solve the problem.

Attached patch applied to trunk and branch.

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/setup/setup.c	Sat Feb  8 12:16:00 2003
+++ allegro/setup/setup.c	Sat Feb  8 12:51:28 2003
@@ -1381,6 +1381,8 @@
       goto End;
    }
 
+   popup(uconvert_ascii("Move your mouse around", tmp1), uconvert_ascii("Press any key to cancel", tmp2));
+
    /* Flush the files. */
    while (TRUE) {
       reset_for_select(fd, &readfds, &timeout);
@@ -1404,8 +1406,6 @@
       }
    }
 
-   popup(uconvert_ascii("Move your mouse around", tmp1), uconvert_ascii("Press any key to cancel", tmp2));
-
    w = buffer_size;
    l = (SCREEN_W - w)/2;
    r = l + w;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/