From 367c8d7c7b525d90cc4f6dbb02134ed9f10e2783 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 14 Nov 2025 10:27:44 -0500 Subject: [PATCH] touch: don't compare mouse_touch_events to zero; it's a bool. --- src/events/SDL_touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_touch.c b/src/events/SDL_touch.c index 6c0388e7f7..4a3d4e1e8c 100644 --- a/src/events/SDL_touch.c +++ b/src/events/SDL_touch.c @@ -415,7 +415,7 @@ void SDL_SendTouchMotion(Uint64 timestamp, SDL_TouchID id, SDL_FingerID fingerid } // SDL_HINT_MOUSE_TOUCH_EVENTS: if not set, discard synthetic touch events coming from platform layer - if (mouse->mouse_touch_events == 0) { + if (!mouse->mouse_touch_events) { if (id == SDL_MOUSE_TOUCHID) { return; }