You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[win32] Fix pointer size scaling precision for custom cursors
The value in the registry for CursorBaseSize is not always divisible by
32, so integer division was causing loss of precision in pointer
scaling. This commit changes getPointerSizeScaleFactor() to return a
float using floating-point division, and ensures all usages of this
method in Cursor.java handle the scale as a float. The float is then
cast to int only when calling DPIUtil.scaleImageData, which only accepts
integer zoom values. This preserves as much precision as possible and
avoids rounding errors in pointer scaling for accessibility settings.
0 commit comments