summaryrefslogtreecommitdiff
path: root/apps/plugins/cube.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/cube.c
parent427bf0b8936f2654fe79e8c5864918530b8838dd (diff)
downloadrockbox-802743a061e01150db544c8e072cd794731b18a7.tar.gz
rockbox-802743a061e01150db544c8e072cd794731b18a7.zip
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/cube.c')
-rw-r--r--apps/plugins/cube.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 55219e5a5e..c770214700 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -433,12 +433,12 @@ static void cube_rotate(int xa, int ya, int za)
433 /* Just to prevent unnecessary lookups */ 433 /* Just to prevent unnecessary lookups */
434 long sxa, cxa, sya, cya, sza, cza; 434 long sxa, cxa, sya, cya, sza, cza;
435 435
436 sxa = sin_int(xa); 436 sxa = fp14_sin(xa);
437 cxa = cos_int(xa); 437 cxa = fp14_cos(xa);
438 sya = sin_int(ya); 438 sya = fp14_sin(ya);
439 cya = cos_int(ya); 439 cya = fp14_cos(ya);
440 sza = sin_int(za); 440 sza = fp14_sin(za);
441 cza = cos_int(za); 441 cza = fp14_cos(za);
442 442
443 /* calculate overall translation matrix */ 443 /* calculate overall translation matrix */
444 matrice[0][0] = (cza * cya) >> 14; 444 matrice[0][0] = (cza * cya) >> 14;