Skip to content

Commit

Permalink
bugfix macos arm fullscreen crash. closes #6685 (#6691)
Browse files Browse the repository at this point in the history
#changelog #osx
  • Loading branch information
ofTheo committed Feb 23, 2021
1 parent 43b3e94 commit 5dbfbe9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/openFrameworks/app/ofAppGLFWWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){
#ifdef TARGET_OSX
//for OS X we need to set this first as the window size affects the window positon
settings.setSize(mode->width, mode->height);
setWindowShape(settings.getWidth(), settings.getHeight());
#endif
setWindowPosition(settings.getPosition().x,settings.getPosition().y);
currentW = mode->width;
Expand All @@ -263,7 +262,6 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){
#ifdef TARGET_OSX
auto size = getScreenSize();
settings.setSize(size.x, size.y);
setWindowShape(settings.getWidth(), settings.getHeight());
#endif
currentW = settings.getWidth();
currentH = settings.getHeight();
Expand Down

0 comments on commit 5dbfbe9

Please sign in to comment.