Skip to content

[idea] macOS - seamless retina window (high res or not) #8365

@dimitre

Description

@dimitre

I finally found everything to make retina work with a seamless window.
Basically everything will work the same and only pixel density will change.

It is working great in the fork I'm using.
I'll explain what the changes are if anybody wants to port to OF.

GLFW window size and mouse will not be doubled in retina. everything is the same.
I've just removed pixelcoordscale, not relevant anymore.
we have to consider the framebuffer size and window size and have the appropriate GLFW callbacks.
ofMatrixStack::getRenderSurfaceSize() have to consider currentWindow->getFramebufferSize();

I'm using always high resolution on PLIST now, so the window decorations are not pixelated (title bar and colored buttons)
this can be switched in ofWindowSettings, so GLFW will handle the way framebuffer works.

// In this fork there is only ofWindowSettings, no inheritance for settings
	ofWindowSettings settings;
	settings.highResolutionCapable = true;

Some related commits:
dimitre@001cec0
dimitre@aa82c6b
dimitre@ba9de37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions