From 802743a061e01150db544c8e072cd794731b18a7 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Sun, 5 Jul 2009 18:06:07 +0000 Subject: 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 --- apps/plugins/clock/clock_draw_analog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/clock') diff --git a/apps/plugins/clock/clock_draw_analog.c b/apps/plugins/clock/clock_draw_analog.c index c41ec3b..9efe362 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, -- cgit v1.1