Skip to content

Mac: events root location points vs pixels retina/scale #140

@7890

Description

@7890

In the mac.m implementation, there are many events having

const NSPoint           rloc = [NSEvent mouseLocation];

By default, NSEvent.mouseLocation returns coordinates in points (logical units), not physical pixels.
I think it would be correct to account for the backing store scale factor.
Because it touches many methods, I would like to get some thoughts @drobilla beforehand. On Mac with retina, all sizes should be 'real' in that they reflect the pixel count, not the points, which is from what I see the case for most things (e.g. view size). Is this reasonable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions