mouse: Fix Y value in motion events when confinement is active
This commit is contained in:
parent
fb6aba1938
commit
d7d67af441
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ
|
||||||
x_min = mouse_rect.x;
|
x_min = mouse_rect.x;
|
||||||
y_min = mouse_rect.y;
|
y_min = mouse_rect.y;
|
||||||
x_max = x_min + mouse_rect.w - 1;
|
x_max = x_min + mouse_rect.w - 1;
|
||||||
y_min = y_min + mouse_rect.h - 1;
|
y_max = y_min + mouse_rect.h - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue