summaryrefslogtreecommitdiff
path: root/menuApp
diff options
context:
space:
mode:
authortim <tim@eclectronics.org>2017-04-12 12:53:58 +0100
committertim <tim@eclectronics.org>2017-04-12 12:53:58 +0100
commit5fe9a2308d5830dc4310790daba928eb4bb14631 (patch)
treec226b6593de4dd5ff15366e964821fe0de79bde9 /menuApp
parent9bb9557c8cf72c19cf536d7eed7d5da4c66498d2 (diff)
saving each new menu to dropbox folder
Diffstat (limited to 'menuApp')
-rw-r--r--menuApp/config.default3
-rw-r--r--menuApp/src/ofApp.cpp5
-rw-r--r--menuApp/src/ofApp.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/menuApp/config.default b/menuApp/config.default
index b4b9e67..9c956bf 100644
--- a/menuApp/config.default
+++ b/menuApp/config.default
@@ -87,8 +87,7 @@
#
# Note: Leave a leading space when adding list items with the += operator
################################################################################
-#PROJECT_DEFINES = FULLSCREEN
-PROJECT_DEFINES = FACTOR=1.0
+#PROJECT_DEFINES = FULLSCREEN FACTOR=1.0
################################################################################
# PROJECT CFLAGS
diff --git a/menuApp/src/ofApp.cpp b/menuApp/src/ofApp.cpp
index c1f7860..8796cff 100644
--- a/menuApp/src/ofApp.cpp
+++ b/menuApp/src/ofApp.cpp
@@ -190,7 +190,6 @@ ofPushMatrix(); //Store the coordinate system nexessary for some reason
background.draw(0,0,1080*FACTOR,1920*FACTOR); //ofGetWidth(),ofGetHeight());
ofPopMatrix(); //Restore the coordinate system
-
int colinitialoffset=40;
int rowinitialoffset=60;
int coloffset=520;
@@ -239,6 +238,8 @@ ofPopMatrix(); //Restore the coordinate system
overlay.draw(0,0,1080*FACTOR,1920*FACTOR); //ofGetWidth(),ofGetHeight()); //don't work on a horiz screen??
ofDisableAlphaBlending();
+ //for some reason the final is only drawn on the frame AFTER all 5 images become allocated
+ //hence the "primed" mechanism
if (primed){
ofImage img;
img.grabScreen(0, 0, ofGetWidth(), ofGetHeight());
@@ -251,6 +252,8 @@ ofPopMatrix(); //Restore the coordinate system
isGrabbed=true;
}
+
+
}
//--------------------------------------------------------------
diff --git a/menuApp/src/ofApp.h b/menuApp/src/ofApp.h
index c9a9892..582879b 100644
--- a/menuApp/src/ofApp.h
+++ b/menuApp/src/ofApp.h
@@ -11,7 +11,7 @@
#define FONTSPACING FONTSIZE*2.3 // 30
#define POLL_INTERVAL 60.0
#define MENUTAG "#hangdai"
-#define SCREENGRABFILEPATH "../../../../../../../../home/tim/Dropbox/menugrab/menu.png"
+#define SCREENGRABFILEPATH "/home/tim/Dropbox/menugrab/menu.png"
class menuItem {
public: