mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-01-30 19:42:51 +03:00
fix(d3d): fix ICursorClip to free cursor in windowed mode
This commit is contained in:
parent
0e4ef3aa29
commit
d8780335f7
@ -1015,7 +1015,7 @@ void CGxDeviceD3d::ICursorClip(int32_t a1) {
|
|||||||
if (a1) {
|
if (a1) {
|
||||||
this->m_hwCursorNeedsUpdate = 1;
|
this->m_hwCursorNeedsUpdate = 1;
|
||||||
|
|
||||||
if (this->m_format.window) {
|
if (this->m_format.window == 0) {
|
||||||
RECT windowRect;
|
RECT windowRect;
|
||||||
GetWindowRect(this->m_hwnd, &windowRect);
|
GetWindowRect(this->m_hwnd, &windowRect);
|
||||||
ClipCursor(&windowRect);
|
ClipCursor(&windowRect);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user