Fix the mouse lock after fullscreen - for real this time. (#1080)

This commit is contained in:
Alexander Babikov
2020-11-16 22:09:13 +05:00
committed by GitHub
parent 2d0b910aa2
commit e0ff781a34
3 changed files with 4 additions and 3 deletions

View File

@@ -326,7 +326,7 @@ sdl_init_common(int flags)
wchar_t temp[128];
SDL_version ver;
int w = 0, h = 0, x = 0, y = 0;
RECT rect, oldclip;
RECT rect;
sdl_log("SDL: init (fs=%d)\n", fs);
@@ -389,8 +389,6 @@ sdl_init_common(int flags)
/* Now create the SDL window from that. */
sdl_win = SDL_CreateWindowFrom((void *)sdl_hwnd);
GetClipCursor(&oldclip);
old_capture = mouse_capture;
GetWindowRect(sdl_hwnd, &rect);