summaryrefslogtreecommitdiff
path: root/apps/plugins/clock/clock_draw_analog.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-05 18:06:07 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-05 18:06:07 +0000
commit802743a061e01150db544c8e072cd794731b18a7 (patch)
tree311abcc9e51973907899a4585dd0e3a2a31572eb /apps/plugins/clock/clock_draw_analog.c
parent427bf0b8936f2654fe79e8c5864918530b8838dd (diff)
Take 2 at 'Consolidate all fixed point math routines in one library' (FS#10400) by Jeffrey Goode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21664 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clock/clock_draw_analog.c')
-rw-r--r--apps/plugins/clock/clock_draw_analog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/clock/clock_draw_analog.c b/apps/plugins/clock/clock_draw_analog.c
index c41ec3b24c..9efe3623a3 100644
--- a/apps/plugins/clock/clock_draw_analog.c
+++ b/apps/plugins/clock/clock_draw_analog.c
@@ -41,11 +41,11 @@ void polar_to_cartesian(int a, int r, int* x, int* y)
{
#if CONFIG_LCD == LCD_SSD1815
/* Correct non-square pixel aspect of archos recorder LCD */
- *x = (sin_int(a) * 5 / 4 * r) >> 14;
+ *x = (fp14_sin(a) * 5 / 4 * r) >> 14;
#else
- *x = (sin_int(a) * r) >> 14;
+ *x = (fp14_sin(a) * r) >> 14;
#endif
- *y = (sin_int(a-90) * r) >> 14;
+ *y = (fp14_sin(a-90) * r) >> 14;
}
void polar_to_cartesian_screen_centered(struct screen * display,