diff options
Diffstat (limited to 'menuApp/src/main.cpp')
| -rw-r--r-- | menuApp/src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/menuApp/src/main.cpp b/menuApp/src/main.cpp index 3c31279..733814a 100644 --- a/menuApp/src/main.cpp +++ b/menuApp/src/main.cpp @@ -3,8 +3,10 @@ //======================================================================== int main( ){ - int width=(1920*FACTOR*sin(ROTATION))+(1080*FACTOR*cos(ROTATION)); - int height=(1920*FACTOR*cos(ROTATION))+(1080*FACTOR*sin(ROTATION)); + 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(width,height,OF_FULLSCREEN); #else |
