From f8468d580d903e106640800034a4721aca24264c Mon Sep 17 00:00:00 2001
From: expikr <[EMAIL REDACTED]>
Date: Thu, 14 Nov 2024 23:49:57 +0800
Subject: [PATCH] add brace for contitional
Co-authored-by: Sam Lantinga <slouken@libsdl.org>
---
src/events/SDL_mouse.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index f00c6ad72018d..c89251c681d98 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -847,7 +847,9 @@ static void SDL_PrivateSendMouseMotion(Uint64 timestamp, SDL_Window *window, SDL
// Post the event, if desired
if (SDL_EventEnabled(SDL_EVENT_MOUSE_MOTION)) {
if (!relative && window_is_relative) {
- if (!mouse->relative_mode_warp_motion) return;
+ if (!mouse->relative_mode_warp_motion) {
+ return;
+ }
xrel = 0.0f;
yrel = 0.0f;
}