touch: don't compare mouse_touch_events to zero; it's a bool.

This commit is contained in:
Ryan C. Gordon 2025-11-14 10:27:44 -05:00
parent 919254cdd1
commit 367c8d7c7b
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -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;
}