Commit 264eb4bbedffa250fc49973b10911fbcddfc338b

Ryan C. Gordon 2014-06-05T00:02:42

Added some (harmlessly) missing braces.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 3ed1d14..757c634 100644
--- a/src/events/SDL_mouse.c
+++ b/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);