From 8770689525a3788bfd6b8ecae2207b00e3f71e23 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 6 Oct 2022 01:12:18 +0200 Subject: [PATCH] testmouse: add explicit int-cast to avoid warning about converting `float` to `int` Emitted by MSVC --- test/testmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testmouse.c b/test/testmouse.c index 27b34f315..b8fc440b9 100644 --- a/test/testmouse.c +++ b/test/testmouse.c @@ -202,10 +202,10 @@ loop(void *arg) /* Mouse wheel */ SDL_SetRenderDrawColor(renderer, 0, 255, 128, 255); if (wheel_x_active) { - SDL_RenderDrawLine(renderer, wheel_x, 0, wheel_x, SCREEN_HEIGHT); + SDL_RenderDrawLine(renderer, (int)wheel_x, 0, (int)wheel_x, SCREEN_HEIGHT); } if (wheel_y_active) { - SDL_RenderDrawLine(renderer, 0, wheel_y, SCREEN_WIDTH, wheel_y); + SDL_RenderDrawLine(renderer, 0, (int)wheel_y, SCREEN_WIDTH, (int)wheel_y); } /* Objects from mouse clicks */