Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added some (harmlessly) missing braces.
- Loading branch information
Showing
with
4 additions
and
2 deletions.
-
+4
−2
src/events/SDL_mouse.c
|
@@ -474,11 +474,13 @@ SDL_WarpMouseInWindow(SDL_Window * window, int x, int y) |
|
|
{ |
|
|
SDL_Mouse *mouse = SDL_GetMouse(); |
|
|
|
|
|
if ( window == NULL ) |
|
|
if ( window == NULL ) { |
|
|
window = mouse->focus; |
|
|
} |
|
|
|
|
|
if ( window == NULL ) |
|
|
if ( window == NULL ) { |
|
|
return; |
|
|
} |
|
|
|
|
|
if (mouse->WarpMouse) { |
|
|
mouse->WarpMouse(window, x, y); |
|
|