Added some (harmlessly) missing braces.
This commit is contained in:
1 parent
7153c2dad1
commit
264eb4bbed
1 file changed
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user