Added some (harmlessly) missing braces.
This commit is contained in:
parent
5319c669a6
commit
0c8f5f80b1
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue