Raise allowed hardware cursor size up to 128px

This commit is contained in:
allfox 2024-02-01 15:47:04 +08:00
parent bdb4d5cef6
commit 474aac2bc5
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ namespace dxvk {
HRESULT D3D9Cursor::SetHardwareCursor(UINT XHotSpot, UINT YHotSpot, const CursorBitmap& bitmap) {
DWORD mask[32];
DWORD mask[128];
std::memset(mask, ~0, sizeof(mask));
ICONINFO info;

View File

@ -4,8 +4,8 @@
namespace dxvk {
constexpr uint32_t HardwareCursorWidth = 32u;
constexpr uint32_t HardwareCursorHeight = 32u;
constexpr uint32_t HardwareCursorWidth = 128u;
constexpr uint32_t HardwareCursorHeight = 128u;
constexpr uint32_t HardwareCursorFormatSize = 4u;
constexpr uint32_t HardwareCursorPitch = HardwareCursorWidth * HardwareCursorFormatSize;

View File

@ -347,7 +347,7 @@ namespace dxvk {
m_implicitSwapchain->GetPresentParameters(&params);
bool hwCursor = params.Windowed;
// Always use a hardware cursor w/h <= 32 px
// Always use a hardware cursor w/h <= 128 px
hwCursor |= inputWidth <= HardwareCursorWidth
|| inputHeight <= HardwareCursorHeight;