diff options
Diffstat (limited to 'src/ft_draw_circle.c')
-rw-r--r-- | src/ft_draw_circle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_circle.c b/src/ft_draw_circle.c index 3e17dfa..be95617 100644 --- a/src/ft_draw_circle.c +++ b/src/ft_draw_circle.c @@ -31,8 +31,8 @@ void while (i < 360) { angle = i; - x1 = scale * cos(angle * M_PI / 180); - y1 = scale * sin(angle * M_PI / 180); + x1 = scale * cos(angle * 3.14159 / 180); + y1 = scale * sin(angle * 3.14159 / 180); *(int*)(cl->img.ptr + (a + (int)x1) * 4 + ((b + (int)y1) * cl->img.sizeline)) = color; i += 0.1; |