From 5fe9a2308d5830dc4310790daba928eb4bb14631 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 12 Apr 2017 12:53:58 +0100 Subject: saving each new menu to dropbox folder --- menuApp/src/ofApp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'menuApp/src/ofApp.cpp') 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; } + + } //-------------------------------------------------------------- -- cgit v1.2.3