mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Fix cursor X/YHotSpot coordinate validation
This commit is contained in:
parent
860d038d77
commit
27ceecfad9
1 changed files with 2 additions and 2 deletions
|
@ -357,8 +357,8 @@ namespace dxvk {
|
|||
return D3DERR_INVALIDCALL;
|
||||
|
||||
// It makes no sense to have a hotspot outside of the bitmap.
|
||||
if (XHotSpot > std::max(inputWidth - 1, 0u)
|
||||
|| YHotSpot > std::max(inputHeight - 1, 0u))
|
||||
if ((inputWidth && (XHotSpot > inputWidth - 1))
|
||||
|| (inputHeight && (YHotSpot > inputHeight - 1)))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
D3DPRESENT_PARAMETERS params;
|
||||
|
|
Loading…
Add table
Reference in a new issue