Change SDL_SetWindowMouseGrab to SDL_SetRelativeMouseMode

This commit is contained in:
Cacodemon345
2021-08-24 18:07:23 +06:00
parent 635ef60c53
commit 0ea1872d67

View File

@@ -269,7 +269,7 @@ sdl_set_fs(int fs)
sdl_enabled = 0;
sdl_destroy_texture();
SDL_SetWindowFullscreen(sdl_win, fs ? SDL_WINDOW_FULLSCREEN : 0);
SDL_SetWindowMouseGrab(sdl_win, mouse_capture);
SDL_SetRelativeMouseMode((SDL_bool)mouse_capture);
sdl_fs = fs;
@@ -441,4 +441,4 @@ wchar_t* ui_window_title(wchar_t* str)
SDL_free((void*)res);
}
return str;
}
}