Skip to content

Commit

Permalink
Added some (harmlessly) missing braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 5, 2014
1 parent 7153c2d commit 264eb4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/events/SDL_mouse.c
Expand Up @@ -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);
Expand Down

0 comments on commit 264eb4b

Please sign in to comment.