mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d9] Stub out cursor code on non-Windows platforms
This commit is contained in:
parent
c6c8acb000
commit
bf99127ee3
@ -5,6 +5,7 @@
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
#ifdef _WIN32
|
||||
void D3D9Cursor::UpdateCursor(int X, int Y) {
|
||||
POINT currentPos = { };
|
||||
if (::GetCursorPos(¤tPos) && currentPos == POINT{ X, Y })
|
||||
@ -43,5 +44,23 @@ namespace dxvk {
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
#else
|
||||
void D3D9Cursor::UpdateCursor(int X, int Y) {
|
||||
Logger::warn("D3D9Cursor::UpdateCursor: Not supported on current platform.");
|
||||
}
|
||||
|
||||
|
||||
BOOL D3D9Cursor::ShowCursor(BOOL bShow) {
|
||||
Logger::warn("D3D9Cursor::ShowCursor: Not supported on current platform.");
|
||||
return std::exchange(m_visible, bShow);
|
||||
}
|
||||
|
||||
|
||||
HRESULT D3D9Cursor::SetHardwareCursor(UINT XHotSpot, UINT YHotSpot, const CursorBitmap& bitmap) {
|
||||
Logger::warn("D3D9Cursor::SetHardwareCursor: Not supported on current platform.");
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
@ -26,7 +26,9 @@ namespace dxvk {
|
||||
|
||||
BOOL m_visible = FALSE;
|
||||
|
||||
#ifdef _WIN32
|
||||
HCURSOR m_hCursor = nullptr;
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user