diff options
author | Tectu <joel@unormal.org> | 2012-08-28 16:39:05 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-08-28 16:39:05 +0200 |
commit | 661d0bb2fe91098e2ae9153f16a3f0442b558401 (patch) | |
tree | 84e61275d9d324bffa63ca3cdf1950441a41d447 /src/gdisp.c | |
parent | d71a6217907564388f36b0e99e6f6b9163a4cb83 (diff) | |
download | uGFX-661d0bb2fe91098e2ae9153f16a3f0442b558401.tar.gz uGFX-661d0bb2fe91098e2ae9153f16a3f0442b558401.tar.bz2 uGFX-661d0bb2fe91098e2ae9153f16a3f0442b558401.zip |
cleanups & docs
Diffstat (limited to 'src/gdisp.c')
-rw-r--r-- | src/gdisp.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gdisp.c b/src/gdisp.c index 582d3377..c3b83214 100644 --- a/src/gdisp.c +++ b/src/gdisp.c @@ -659,7 +659,20 @@ void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) { }
}
-void _draw_arc(int x, int y, int start, int end, int radius, color_t color) {
+/*
+ * @brief Internal helper function for gdispDrawArc()
+ *
+ * @note DO NOT USE DIRECTLY!
+ *
+ * @param[in] x, y The middle point of the arc
+ * @param[in] start The start angle of the arc
+ * @param[in] end The end angle of the arc
+ * @param[in] radius The radius of the arc
+ * @param[in] color The color in which the arc will be drawn
+ *
+ * @notapi
+ */
+void _draw_arc(coord_t x, coord_t y, uint16_t start, uint16_t end, uint16_t radius, color_t color) {
if (start >= 0 && start <= 180) {
float x_maxI = x + radius*cos(start*M_PI/180);
float x_minI;
|