diff options
| author | tim <tim@eclectronics.org> | 2017-06-12 23:17:46 +0100 |
|---|---|---|
| committer | tim <tim@eclectronics.org> | 2017-06-12 23:17:46 +0100 |
| commit | fd37c61cd45c1c7a4786b12db8140680772cb1be (patch) | |
| tree | e7e036a11de58289c152139a464c8fbf1d9ee431 /menuApp/src/main.cpp | |
| parent | b2e4d58259d8e4ca744d40ad53bb3ca5e3d0ed3d (diff) | |
possible grabbing fix by rotation
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 |
