From fea3395fc141909aeb51cb66326726876144e370 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 29 Feb 2024 18:50:44 +0100 Subject: Review formatting --- src/platforms/rcore_desktop_sdl.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/platforms') diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 1b6304d2..e749cecb 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -971,21 +971,20 @@ void SetMouseCursor(int cursor) CORE.Input.Mouse.cursor = cursor; } -static void UpdateSDLTouchPoints(SDL_TouchFingerEvent event) +static void UpdateTouchPointsSDL(SDL_TouchFingerEvent event) { CORE.Input.Touch.pointCount = SDL_GetNumTouchFingers(event.touchId); - for (int i=0; iid; - CORE.Input.Touch.position[i].x = finger->x * CORE.Window.screen.width; - CORE.Input.Touch.position[i].y = finger->y * CORE.Window.screen.height; + CORE.Input.Touch.position[i].x = finger->x*CORE.Window.screen.width; + CORE.Input.Touch.position[i].y = finger->y*CORE.Window.screen.height; CORE.Input.Touch.currentTouchState[i] = 1; } - for (int i=CORE.Input.Touch.pointCount; i