diff options
| author | tim <tim@eclectronics.org> | 2017-03-28 23:33:42 +0100 |
|---|---|---|
| committer | tim <tim@eclectronics.org> | 2017-03-28 23:33:42 +0100 |
| commit | 3f2cfe8ba337a776f91f785010ff3bc1c43dc6f9 (patch) | |
| tree | 075d61206283d48502ddf81b5a193499906c92d0 /menuApp | |
| parent | 8d671c4c77f41b0991fb6005d24736dccbe36cfd (diff) | |
move factor to config
Diffstat (limited to 'menuApp')
| -rw-r--r-- | menuApp/config.default | 1 | ||||
| -rw-r--r-- | menuApp/src/ofApp.cpp | 4 | ||||
| -rw-r--r-- | menuApp/src/ofApp.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/menuApp/config.default b/menuApp/config.default index cda4610..b4b9e67 100644 --- a/menuApp/config.default +++ b/menuApp/config.default @@ -88,6 +88,7 @@ # Note: Leave a leading space when adding list items with the += operator ################################################################################ #PROJECT_DEFINES = FULLSCREEN +PROJECT_DEFINES = FACTOR=1.0 ################################################################################ # PROJECT CFLAGS diff --git a/menuApp/src/ofApp.cpp b/menuApp/src/ofApp.cpp index 44ebf68..1aadaec 100644 --- a/menuApp/src/ofApp.cpp +++ b/menuApp/src/ofApp.cpp @@ -74,7 +74,7 @@ void ofApp::draw(){ ofSetColor(255,255,255); ofPushMatrix(); //Store the coordinate system nexessary for some reason - background.draw(0,0,1080,1920); //ofGetWidth(),ofGetHeight()); + background.draw(0,0,1080*FACTOR,1920*FACTOR); //ofGetWidth(),ofGetHeight()); ofPopMatrix(); //Restore the coordinate system @@ -116,7 +116,7 @@ ofPopMatrix(); //Restore the coordinate system } ofEnableAlphaBlending(); - overlay.draw(0,0,1080,1920); //ofGetWidth(),ofGetHeight()); + overlay.draw(0,0,1080*FACTOR,1920*FACTOR); //ofGetWidth(),ofGetHeight()); ofDisableAlphaBlending(); float t=ofGetElapsedTimef (); diff --git a/menuApp/src/ofApp.h b/menuApp/src/ofApp.h index 9e5471a..761e6c3 100644 --- a/menuApp/src/ofApp.h +++ b/menuApp/src/ofApp.h @@ -6,7 +6,7 @@ #include "ofxTextSuite.h" #define IMAGE_SLOTS 5 -#define FACTOR 1.0 +//#define FACTOR 1.0 #define POLL_INTERVAL 60.0 class ofApp : public ofBaseApp{ |
