mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-09-21 22:48:44 +02:00
Revert "Update SDL_windowswindow.c"
This reverts commit d0fdf6207bf231eccc7f50ec8b98f6301bb6ce46. (cherry picked from commit f49f1434b9d4c13c821ae6f789defb07e140f1fe)
This commit is contained in:
parent
1e6c128c4c
commit
4d4c81d438
@ -1293,7 +1293,7 @@ void WIN_UpdateClipCursor(SDL_Window *window)
|
|||||||
(window->mouse_rect.w > 0 && window->mouse_rect.h > 0)) &&
|
(window->mouse_rect.w > 0 && window->mouse_rect.h > 0)) &&
|
||||||
(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
|
(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
|
||||||
if (mouse->relative_mode && !mouse->relative_mode_warp && data->mouse_relative_mode_center) {
|
if (mouse->relative_mode && !mouse->relative_mode_warp && data->mouse_relative_mode_center) {
|
||||||
if (GetClientRect(data->hwnd, &rect)) {
|
if (GetWindowRect(data->hwnd, &rect)) {
|
||||||
/* WIN_WarpCursor() jitters by +1, and remote desktop warp wobble is +/- 1 */
|
/* WIN_WarpCursor() jitters by +1, and remote desktop warp wobble is +/- 1 */
|
||||||
LONG remote_desktop_adjustment = GetSystemMetrics(SM_REMOTESESSION) ? 2 : 0;
|
LONG remote_desktop_adjustment = GetSystemMetrics(SM_REMOTESESSION) ? 2 : 0;
|
||||||
LONG cx, cy;
|
LONG cx, cy;
|
||||||
|
Loading…
Reference in New Issue
Block a user