mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-21 09:11:49 +00:00
Revert "Update SDL_windowswindow.c"
This reverts commitd0fdf6207b
. (cherry picked from commitf49f1434b9
)
This commit is contained in:
@@ -1293,7 +1293,7 @@ void WIN_UpdateClipCursor(SDL_Window *window)
|
||||
(window->mouse_rect.w > 0 && window->mouse_rect.h > 0)) &&
|
||||
(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
|
||||
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 */
|
||||
LONG remote_desktop_adjustment = GetSystemMetrics(SM_REMOTESESSION) ? 2 : 0;
|
||||
LONG cx, cy;
|
||||
|
Reference in New Issue
Block a user