Skip to content

Commit

Permalink
use propper cursor hide method
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmanLP committed Dec 18, 2024
1 parent 74af3a0 commit 9a9c219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphic/Fast3D/gfx_dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,11 @@ static bool gfx_dxgi_get_mouse_state(uint32_t btn) {
static void gfx_dxgi_set_mouse_capture(bool capture) {
if (capture) {
apply_mouse_capture_clip();
ShowCursor(FALSE);
gfx_dxgi_set_cursor_visibility(false);
SetCapture(dxgi.h_wnd);
} else {
ClipCursor(nullptr);
ShowCursor(TRUE);
gfx_dxgi_set_cursor_visibility(true);
ReleaseCapture();
}
dxgi.is_mouse_captured = capture;
Expand Down

0 comments on commit 9a9c219

Please sign in to comment.