Fix hotspot multiplier

This commit is contained in:
Jaex 2022-06-15 00:33:32 +03:00
parent 3c7faeb4d0
commit b2896cec47

View file

@ -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)