Skip to content

Provide Monitor#getDPI() #3057

@laeubi

Description

@laeubi

Display#getDPI states

Caution: this method may yield unexpected results when using multiple monitors. This method returns a value based on the primary monitor DPI on startup (depending on the OS).

but it is hard to guess what to use instead, eg Monitor#getZoom exits but it is unclear how this has to be used.

Printer on the other hand has getDPI() returning the DPI of the printer, so it seems natural that Monitor would have one as well if DPI differs per monitor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions