diff gtk3/dw.c @ 1266:83b0ed8c8377

Fixed on GTK passing angles to cairo in degrees instead of radians. Also fixed some incorrect values in the test program for the arc.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 25 Oct 2011 12:01:20 +0000
parents 6b605b0700e8
children 8655753e2bc4
line wrap: on
line diff
--- a/gtk3/dw.c	Tue Oct 25 11:14:13 2011 +0000
+++ b/gtk3/dw.c	Tue Oct 25 12:01:20 2011 +0000
@@ -6960,8 +6960,8 @@
       double dx = xorigin - x1;
       double dy = yorigin - y1;
       double r = sqrt(dx*dx + dy*dy);
-      double a1 = 180/M_PI * atan2((y1-yorigin), (x1-xorigin));
-      double a2 = 180/M_PI * atan2((y2-yorigin), (x2-xorigin));
+      double a1 = atan2((y1-yorigin), (x1-xorigin));
+      double a2 = atan2((y2-yorigin), (x2-xorigin));
 
       gdk_cairo_set_source_color (cr, foreground);
       cairo_set_line_width(cr, 1);