Added some (harmlessly) missing braces.

This commit is contained in:
Ryan C. Gordon 2014-06-05 00:02:42 -04:00
parent 7153c2dad1
commit 264eb4bbed
1 changed files with 4 additions and 2 deletions

View File

@ -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);