From fd37c61cd45c1c7a4786b12db8140680772cb1be Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 12 Jun 2017 23:17:46 +0100 Subject: possible grabbing fix by rotation --- menuApp/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'menuApp/src/main.cpp') 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 -- cgit v1.2.3