add brace for contitional
Some checks are pending
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

Co-authored-by: Sam Lantinga <slouken@libsdl.org>
This commit is contained in:
expikr 2024-11-14 23:49:57 +08:00 committed by Sam Lantinga
parent eaef956a9a
commit f8468d580d

View file

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