]> git.sur5r.net Git - cc65/blobdiff - libsrc/tgi/tgi_pieslice.c
Added '_' prefix to sin and cos.
[cc65] / libsrc / tgi / tgi_pieslice.c
index f78d7a672a6cf4ed8c08cbab498402bf79ff2fbe..748d1819ad8153c6afad6b7f45042cf74a1168b4 100644 (file)
 void __fastcall__ tgi_pieslice (int x, int y, unsigned char rx, unsigned char ry,
                                 unsigned sa, unsigned ea)
 /* Draw an ellipse pie slice with center at x/y and radii rx/ry using the
- * current drawing color. The pie slice covers the angle between sa and ea
- * (startangle and endangle), which must be in the range 0..360 (otherwise the
- * function may behave unextectedly).
- */
+** current drawing color. The pie slice covers the angle between sa and ea
+** (startangle and endangle), which must be in the range 0..360 (otherwise the
+** function may behave unexpectedly).
+*/
 {
     /* Draw an arc ... */
     tgi_arc (x, y, rx, ry, sa, ea);
 
     /* ... and close it */
-    tgi_line (x, y, x + tgi_imulround (rx, cc65_cos (sa)), y - tgi_imulround (ry, cc65_sin (sa)));
-    tgi_line (x, y, x + tgi_imulround (rx, cc65_cos (ea)), y - tgi_imulround (ry, cc65_sin (ea)));
+    tgi_line (x, y, x + tgi_imulround (rx, _cos (sa)), y - tgi_imulround (ry, _sin (sa)));
+    tgi_line (x, y, x + tgi_imulround (rx, _cos (ea)), y - tgi_imulround (ry, _sin (ea)));
 }