Skip to content

Commit

Permalink
add brace for contitional
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Lantinga <[email protected]>
  • Loading branch information
expikr and slouken authored Nov 14, 2024
1 parent 0451cf2 commit d0dc5a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/events/SDL_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d0dc5a2

Please sign in to comment.