cosf -> cos

This commit is contained in:
p.kosyh 2011-04-15 13:43:56 +00:00
parent 339f44d6a1
commit 6476eb7087
2 changed files with 3 additions and 2 deletions

View file

@ -25,3 +25,4 @@
#ifndef S60
#include <libgen.h>
#endif
#include <math.h>

View file

@ -1336,8 +1336,8 @@ img_t gfx_rotate(img_t src, float angle)
x = (float)(ag->frames[i].x) - w / 2;
y = (float)(ag->frames[i].y) - h / 2;
x1 = x*cosf(rangle) - y*sinf(rangle);
y1 = y*cosf(rangle) + x*sinf(rangle);
x1 = x*cos(rangle) - y*sin(rangle);
y1 = y*cos(rangle) + x*sin(rangle);
ag->frames[i].x = x1 + w / 2;
ag->frames[i].y = y1 + h / 2;