diff options
Diffstat (limited to 'menuApp/src/main.cpp')
| -rw-r--r-- | menuApp/src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/menuApp/src/main.cpp b/menuApp/src/main.cpp index e0837f0..733814a 100644 --- a/menuApp/src/main.cpp +++ b/menuApp/src/main.cpp @@ -3,11 +3,14 @@ //======================================================================== int main( ){ + float rotation=ofDegToRad(ROTATION); + int width=(1920*FACTOR*sin(rotation))+(1080*FACTOR*cos(rotation)); + int height=(1920*FACTOR*cos(rotation))+(1080*FACTOR*sin(rotation)); #ifdef FULLSCREEN - ofSetupOpenGL(1080*FACTOR, 1920*FACTOR,OF_FULLSCREEN); + ofSetupOpenGL(width,height,OF_FULLSCREEN); #else - ofSetupOpenGL(1080*FACTOR, 1920*FACTOR,OF_WINDOW); // <-------- setup the GL context + ofSetupOpenGL(width,height,OF_WINDOW); #endif // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN |
