summaryrefslogtreecommitdiff
path: root/gui/src/ofApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2017-08-31 00:34:32 +0100
committerTim Redfern <tim@getdrop.com>2017-08-31 00:34:32 +0100
commitb0d54aadaf9dfb3b2f14974f55b3a725619ea445 (patch)
treead882b21f92f3124cb0713494d15fbc4614ecfc7 /gui/src/ofApp.cpp
parent52f12dfc10edfc4dd063b610f65dd2e901d3080c (diff)
correct window scale
Diffstat (limited to 'gui/src/ofApp.cpp')
-rw-r--r--gui/src/ofApp.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp
index 7e25b42..b026984 100644
--- a/gui/src/ofApp.cpp
+++ b/gui/src/ofApp.cpp
@@ -18,13 +18,26 @@ void ofApp::update(){
}
+void ofApp::updateOutput(ofEventArgs & args){
+
+ images.update();
+
+}
+
+
//--------------------------------------------------------------
void ofApp::draw(){
ofBackground(0,0,0);
-
images.drawGui();
}
+void ofApp::drawOutput(ofEventArgs & args){
+ ofBackground(0,0,0);
+
+ images.drawOutput();
+
+}
+
//--------------------------------------------------------------
void ofApp::keyPressed(ofKeyEventArgs &keyargs){
images.keyPressed(keyargs);
@@ -70,6 +83,11 @@ void ofApp::windowResized(int w, int h){
}
+void ofApp::outputWindowResized(ofResizeEventArgs &resizeargs){
+ //printf("Output window: %i,%i \n",resizeargs.width,resizeargs.height);
+ images.outputSize=ofPoint(resizeargs.width,resizeargs.height);
+}
+
//--------------------------------------------------------------
void ofApp::gotMessage(ofMessage msg){