[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gEDA-dev: patch gerbv arc drawing




Hi,

while there is talk about arcs on the list, I remembered that I have a
patch for gerbv that fixes arc drawing.

I read that gerbv is in need for a maintainer.  I will not volunteer
for that, but I could apply the patch if I get commit access.  My SF
id is "sib4"

Regards
Stephan

? config.guess
? config.sub
? desktop/Makefile
? desktop/Makefile.in
? doc/eagle/Makefile
? doc/eagle/Makefile.in
? doc/html/Makefile
? doc/html/Makefile.in
Index: src/draw.c
===================================================================
RCS file: /cvsroot/gerbv/gerbv/src/draw.c,v
retrieving revision 1.37
diff -u -r1.37 draw.c
--- src/draw.c	28 Dec 2004 22:25:18 -0000	1.37
+++ src/draw.c	10 Jan 2007 20:36:45 -0000
@@ -51,7 +51,7 @@
 gerbv_draw_circle(GdkPixmap *pixmap, GdkGC *gc, 
 		  gint filled, gint x, gint y, gint dia)
 {
-    static const gint full_circle = 23360;
+  static const gint full_circle = 23040; // 360*64
     gint real_x = x - dia / 2;
     gint real_y = y - dia / 2;
     
@@ -129,7 +129,7 @@
     gint real_y = y - height / 2;
 
     gdk_draw_arc(pixmap, gc, FALSE, real_x, real_y, width, height, 
-		 (gint)angle1 * 64.0, (gint)(angle2 - angle1) * 64.0);
+		 (gint)(angle1 * 64.0), (gint)((angle2 - angle1) * 64.0));
     
     return;
 } /* gerbv_draw_arc */


_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev