Skip to content

update getPointerSizeScaleFactor to return float value in order to avoid loosing precision #456

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

Description
Recently I commited: eclipse-platform/eclipse.platform.swt@6e4241d, where we read the cursor size value from accessibility setting of windows. I assumed that each value is multiple of 32 which was wrong.

Here for the cursor size 4 is 80
Image

Image

and my method will return 2 (i assumed it should return 4). Changing it to float will return us 2.4 which is more precise when trying to scale up the size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

    Type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions