diff --git a/test/testpen.c b/test/testpen.c index 87a3f9412..f143e940f 100644 --- a/test/testpen.c +++ b/test/testpen.c @@ -19,11 +19,9 @@ 3. This notice may not be removed or altered from any source distribution. */ -#include #include #include #include -#include #define WIDTH 1600 #define HEIGHT 1200 @@ -158,7 +156,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 || (SDL_fabs(tilt_vec_x) < 0.2f && SDL_fabs(tilt_vec_y) < 0.2f)) { + if (ALWAYS_SHOW_PRESSURE_BOX || (SDL_fabsf(tilt_vec_x) < 0.2f && SDL_fabsf(tilt_vec_y) < 0.2f)) { int rot; float pressure = last_pressure * 80.0f;