Use functions from SDL instead of libc

This commit is contained in:
meyraud705 authored and Ryan C. Gordon committed 2024-02-05 09:01:28 -05:00
1 parent a6374123c7
commit f85535b4b6
3 files changed
+5 -5

No files matched your search

+1 -1
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;