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

window larger than width of display is created at half size on mac #6032

Closed
kylemcdonald opened this issue May 21, 2018 · 3 comments
Closed

Comments

@kylemcdonald
Copy link
Contributor

previously, large windows were causing a SIGABRT #5969

that's not a problem any more, but i do see another weird behavior when using "high resolution capable" mode on mac with the latest OF from github.

my display is 1440x900 retina (2x pixel density). running this code:

#include "ofMain.h"

class ofApp : public ofBaseApp {
public:
    void setup() {
        ofBackground(0);
        ofNoFill();
    }
    void draw() {
        ofDrawLine(0, 0, 1440, 900);
        ofDrawLine(1440, 0, 0, 900);
        ofDrawRectangle(0, 0, 1440, 900);
    }
};

int main() {
    ofSetupOpenGL(1440, 900, OF_WINDOW);
    ofRunApp(new ofApp());
}

then i get:

screen shot 2018-05-21 at 11 19 32

perfect. if i change to ofSetupOpenGL(1441, 900, OF_WINDOW); i get:

screen shot 2018-05-21 at 11 19 44

strange. this only happens in the x axis. if i change the height it seems to handle it fine. changing the height to 1024 i get:

screen shot 2018-05-21 at 11 20 18

@roymacdonald
Copy link
Member

Hey Kyle.
Just PR'd a fix for this.
#6033
best!

@arturoc arturoc closed this as completed Jul 30, 2018
@kylemcdonald
Copy link
Contributor Author

@roymacdonald amazing, thank you 🙏

@roymacdonald
Copy link
Member

you're welcome. happy to contribute.
cheers

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

3 participants