1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[d3d9] Don't show/hide a software cursor

This commit is contained in:
WinterSnowfall 2023-07-16 18:46:19 +03:00 committed by Joshie
parent a62117cd13
commit b0b46fd075

View File

@ -16,7 +16,11 @@ namespace dxvk {
BOOL D3D9Cursor::ShowCursor(BOOL bShow) {
::SetCursor(bShow ? m_hCursor : nullptr);
if (likely(m_hCursor != nullptr))
::SetCursor(bShow ? m_hCursor : nullptr);
else
Logger::debug("D3D9Cursor::ShowCursor: Software cursor not implemented.");
return std::exchange(m_visible, bShow);
}
@ -63,4 +67,4 @@ namespace dxvk {
}
#endif
}
}