[AD] smoother mouse patch

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


The attached patch is really simple, but makes the mouse movement appear significantly smoother on my machine. I don't think it will have any adverse effects, but can people try it out on various different platforms and report back the results?

I tried it on the XWIN and DGA2 gfx drivers, linux, P4.

Peter
Index: src/mouse.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/mouse.c,v
retrieving revision 1.20
diff -u -r1.20 mouse.c
--- src/mouse.c	5 May 2004 20:45:57 -0000	1.20
+++ src/mouse.c	7 Aug 2004 08:39:02 -0000
@@ -511,11 +511,11 @@
 
       release_bitmap(_mouse_screen);
 
-      install_int(mouse_move, 20);
+      install_int(mouse_move, 10);
    }
    else {
       if (mouse_driver->timer_poll) 
-	 install_int(mouse_move, 20);
+	 install_int(mouse_move, 10);
    }
 }
 
@@ -915,7 +915,7 @@
    _add_exit_func(remove_mouse);
 
    if (mouse_driver->timer_poll)
-      install_int(mouse_move, 20);
+      install_int(mouse_move, 10);
 
    return num_buttons;
 }


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