changeset 2440:070337dd4ef7

iOS: Fix dw_draw_arc()... iOS is in raidans not degrees. Thanks wiliz on freenode.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 07 Apr 2021 19:07:46 +0000
parents af5487a11954
children a80df2e7195d
files ios/dw.m
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ios/dw.m	Wed Apr 07 03:04:41 2021 +0000
+++ b/ios/dw.m	Wed Apr 07 19:07:46 2021 +0000
@@ -5551,13 +5551,9 @@
             double dy = yorigin - y1;
             double r = sqrt(dx*dx + dy*dy);
 
-            /* Convert to degrees */
-            a1 *= (180.0 / M_PI);
-            a2 *= (180.0 / M_PI);
-
             /* Prepare to draw */
             aPath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(xorigin, yorigin)
-                                                   radius:r startAngle:a1 endAngle:a2 clockwise:NO];
+                                                   radius:r startAngle:a1 endAngle:a2 clockwise:YES];
         }
         /* If the fill flag is passed */
         if(flags & DW_DRAW_FILL)