Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High Resolution Capable not working correctly #6068

Closed
cuinjune opened this issue Jul 8, 2018 · 3 comments
Closed

High Resolution Capable not working correctly #6068

cuinjune opened this issue Jul 8, 2018 · 3 comments

Comments

@cuinjune
Copy link
Contributor

cuinjune commented Jul 8, 2018

First of all, when I set High Resolution Capable to YES in openFrameworks-Info.plist file, the window shows up in half size than the size it was when High Resolution Capable was set to NO and this is the problem I can live with.

However, when I set the window width to be larger than my Mac Book Pro's non-retina screen resolution(1440x900), suddenly the width of the window gets as big as the screen. (the window width becomes 2 times bigger when I change width to 1441 from 1440)

I assume there's a code that compares the window dimensions with the screen dimensions so the window won't get bigger than the screen size. But I think one made a mistake by using the non-retina resolution instead of retina.

The problem only happens with OF 0.10.0 and it works fine with OF 0.9.8.
Can any Mac users confirm this issue? How can we fix this?

@cuinjune cuinjune changed the title High Resolution Capable not working correctly. High Resolution Capable not working correctly Jul 8, 2018
@luisarandas
Copy link

Any updates on this?
Best, Luis

@kylemcdonald
Copy link
Contributor

it looks like this might be related to a previous issue #6032

i think it's also related to this bug that happens when the high resolution switch is turned on:

#include "ofMain.h"
class ofApp : public ofBaseApp{
public:
    void setup() {
        ofBackground(0);
    }
    void update() {
    }
    void draw() {
        ofSetColor(255);
        ofDrawRectangle(0,0,100,100);
    }
};

int main() {
    ofSetupOpenGL(1920, 1080, OF_WINDOW);
    ofRunApp(new ofApp());
}

expected behavior: draw rectangle at top left corner. actual behavior:

Screen Shot 2019-09-07 at 11 25 51 AM

@jildertviet
Copy link

jildertviet commented Oct 26, 2020

Hi,
I can't replicate the 1440-1441 bug (of_v0.11.0).
But I can confirm the bug that @kylemcdonald mentions, on of_v0.11.0 on OSX (that's why I'm here).
However, it's gone on the nightly build, so I guess this issue can be closed? (reason of this comment)
Probably this PR is the fix #6546

@ofTheo ofTheo closed this as completed Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants