mirror of https://github.com/encounter/SDL.git
Added some (harmlessly) missing braces.
This commit is contained in:
parent
7153c2dad1
commit
264eb4bbed
|
@ -474,11 +474,13 @@ SDL_WarpMouseInWindow(SDL_Window * window, int x, int y)
|
||||||
{
|
{
|
||||||
SDL_Mouse *mouse = SDL_GetMouse();
|
SDL_Mouse *mouse = SDL_GetMouse();
|
||||||
|
|
||||||
if ( window == NULL )
|
if ( window == NULL ) {
|
||||||
window = mouse->focus;
|
window = mouse->focus;
|
||||||
|
}
|
||||||
|
|
||||||
if ( window == NULL )
|
if ( window == NULL ) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (mouse->WarpMouse) {
|
if (mouse->WarpMouse) {
|
||||||
mouse->WarpMouse(window, x, y);
|
mouse->WarpMouse(window, x, y);
|
||||||
|
|
Loading…
Reference in New Issue