[cairo-commit] cairo-demo/sproing ChangeLog, 1.3, 1.4 sproing.c, 1.2, 1.3

Carl Worth commit at pdx.freedesktop.org
Mon Mar 28 06:25:23 PST 2005


Committed by: cworth

Update of /cvs/cairo/cairo-demo/sproing
In directory gabe:/tmp/cvs-serv31873

Modified Files:
	ChangeLog sproing.c 
Log Message:

        * sproing.c (scribble_button_press_event): Fix pixel-alignment bug
        on button press without motion.

        * .cvsignore: Added sproing binary to .cvsignore.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/sproing/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ChangeLog	11 Mar 2005 16:00:00 -0000	1.3
+++ ChangeLog	28 Mar 2005 14:25:19 -0000	1.4
@@ -1,3 +1,10 @@
+2005-03-28  Carl Worth  <cworth at cworth.org>
+
+	* sproing.c (scribble_button_press_event): Fix pixel-alignment bug
+	on button press without motion.
+
+	* .cvsignore: Added sproing binary to .cvsignore.
+
 2005-03-11  Kristian Høgsberg  <krh at redhat.com>
 
 	* COPYING: Convert this to UTF-8.

Index: sproing.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/sproing/sproing.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sproing.c	11 Mar 2005 15:22:04 -0000	1.2
+++ sproing.c	28 Mar 2005 14:25:19 -0000	1.3
@@ -486,7 +486,7 @@
   Model *model = data;
   
   if (event->button == 1)
-    model_move_attractor (model, event->x, event->y);
+    model_move_attractor (model, event->x + 0.5, event->y + 0.5);
 
   return TRUE;
 }




More information about the cairo-commit mailing list