Skip to content
Permalink
Browse files

Added some (harmlessly) missing braces.

  • Loading branch information
icculus committed Jun 5, 2014
1 parent 7153c2d commit 264eb4bbedffa250fc49973b10911fbcddfc338b
Showing with 4 additions and 2 deletions.
  1. +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);

0 comments on commit 264eb4b

Please sign in to comment.