mirror of https://github.com/doitsujin/dxvk
Raise allowed hardware cursor size up to 128px
This commit is contained in:
parent
bdb4d5cef6
commit
474aac2bc5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -347,7 +347,7 @@ namespace dxvk {
|
|||
m_implicitSwapchain->GetPresentParameters(¶ms);
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue