diff options
author | WinterSnowfall <WinterSnowfall@users.noreply.github.com> | 2023-07-16 18:46:19 +0300 |
---|---|---|
committer | Joshie <joshua@froggi.es> | 2023-08-02 03:51:19 +0300 |
commit | b0b46fd075e9e8f735ed6cee184c1b912863b401 (patch) | |
tree | 807da335143e48c8f7f822c0a52974d860d4320d | |
parent | a62117cd13618f98e5c0f0da27de9193cbc6dae2 (diff) |
[d3d9] Don't show/hide a software cursor
-rw-r--r-- | src/d3d9/d3d9_cursor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/d3d9/d3d9_cursor.cpp b/src/d3d9/d3d9_cursor.cpp index 798104b3..16ec41d6 100644 --- a/src/d3d9/d3d9_cursor.cpp +++ b/src/d3d9/d3d9_cursor.cpp @@ -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 -}
\ No newline at end of file +} |