From d8780335f7ad41859d9902ef88a96fcc073ef59e Mon Sep 17 00:00:00 2001 From: VDm Date: Sat, 2 Aug 2025 17:51:05 +0400 Subject: [PATCH] fix(d3d): fix ICursorClip to free cursor in windowed mode --- src/gx/d3d/CGxDeviceD3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gx/d3d/CGxDeviceD3d.cpp b/src/gx/d3d/CGxDeviceD3d.cpp index a0bf63b..28b0df9 100644 --- a/src/gx/d3d/CGxDeviceD3d.cpp +++ b/src/gx/d3d/CGxDeviceD3d.cpp @@ -1015,7 +1015,7 @@ void CGxDeviceD3d::ICursorClip(int32_t a1) { if (a1) { this->m_hwCursorNeedsUpdate = 1; - if (this->m_format.window) { + if (this->m_format.window == 0) { RECT windowRect; GetWindowRect(this->m_hwnd, &windowRect); ClipCursor(&windowRect);