mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Fix hotspot multiplier
This commit is contained in:
parent
3c7faeb4d0
commit
b2896cec47
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ public void UpdateCursorData()
|
|||
}
|
||||
else
|
||||
{
|
||||
Hotspot = new Point(iconInfo.xHotspot * (Size.Width / 32), iconInfo.yHotspot * (Size.Height / 32));
|
||||
float multiplier = Size.Width / 32f;
|
||||
Hotspot = new Point((int)Math.Round(iconInfo.xHotspot * multiplier), (int)Math.Round(iconInfo.yHotspot * multiplier));
|
||||
}
|
||||
|
||||
if (iconInfo.hbmMask != IntPtr.Zero)
|
||||
|
|
Loading…
Reference in a new issue