Use functions from SDL instead of libc

This commit is contained in:
meyraud705
2024-02-05 13:54:05 +01:00
committed by Ryan C. Gordon
parent a6374123c7
commit f85535b4b6
3 changed files with 5 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ static void DrawScreen(SDL_Renderer *renderer)
SDL_RenderLine(renderer, X, Y, endx - (ydelta * last_pressure / 3.0f), endy + (xdelta * last_pressure / 3.0f));
/* If tilt is very small (or zero, for pens that don't have tilt), add some extra lines, rotated by the current rotation value */
if (ALWAYS_SHOW_PRESSURE_BOX || (fabs(tilt_vec_x) < 0.2f && fabs(tilt_vec_y) < 0.2f)) {
if (ALWAYS_SHOW_PRESSURE_BOX || (SDL_fabs(tilt_vec_x) < 0.2f && SDL_fabs(tilt_vec_y) < 0.2f)) {
int rot;
float pressure = last_pressure * 80.0f;