mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-18 10:48:28 +00:00
Removed SDL_stdinc.h dependency on HAVE_M_PI, added SDL_M_PIl (double) and SDL_M_PIf (float) instead
This commit is contained in:
parent
8733927e35
commit
670f1df469
16 changed files with 38 additions and 44 deletions
|
@ -3679,7 +3679,7 @@ SDL_RenderCopyExF(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
float s_minx, s_miny, s_maxx, s_maxy;
|
||||
float c_minx, c_miny, c_maxx, c_maxy;
|
||||
|
||||
const float radian_angle = (float)((M_PI * angle) / 180.0);
|
||||
const float radian_angle = (float)((SDL_M_PIl * angle) / 180.0);
|
||||
const float s = SDL_sinf(radian_angle);
|
||||
const float c = SDL_cosf(radian_angle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue