Skip to content

Handle scale factor change on macOS #67

@kpreid

Description

@kpreid

The macOS code in softbuffer 0.2.0 consults backingScaleFactor() only when the graphics context is created. This means that, assuming the application always renders an image of the window's physical size, the image will display at the wrong scale (half or double) if the window has been dragged between monitors with different scale factors. Instead, the scale factor should probably be consulted at every set_buffer() call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - CoreGraphicsmacOS/iOS/tvOS/watchOS/visionOS backendbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions