forked from len0rd/rockbox
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
This commit is contained in:
parent
427bf0b893
commit
802743a061
22 changed files with 754 additions and 755 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue