Use SDL's stdinc functions instead of C runtime calls.

--HG--
extra : histedit_source : e1d934044bdfa9a54c4f0e0b09f053f6ad2b84c8
This commit is contained in:
Ryan C. Gordon 2016-01-05 02:29:16 -05:00
parent 3230d74d35
commit 2503e42a28
3 changed files with 5 additions and 3 deletions

View file

@ -690,7 +690,7 @@ SDL_SYS_ToDirection(Uint16 *dest, SDL_HapticDirection * src)
else if (!src->dir[0])
*dest = (src->dir[1] >= 0 ? 0x8000 : 0);
else {
float f = atan2(src->dir[1], src->dir[0]); /* Ideally we'd use fixed point math instead of floats... */
float f = SDL_atan2(src->dir[1], src->dir[0]); /* Ideally we'd use fixed point math instead of floats... */
/*
atan2 takes the parameters: Y-axis-value and X-axis-value (in that order)
- Y-axis-value is the second coordinate (from center to SOUTH)