Skip to content

Commit

Permalink
[d3d9] Call DestroyCursor on cursor release
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall committed Mar 20, 2024
1 parent 1299ad0 commit 3036004
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/d3d9/d3d9_cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ namespace dxvk {

public:

#ifdef _WIN32
~D3D9Cursor() {
if (m_hCursor != nullptr)
::DestroyCursor(m_hCursor);
}
#endif

void UpdateCursor(int X, int Y);

BOOL ShowCursor(BOOL bShow);
Expand Down

0 comments on commit 3036004

Please sign in to comment.