summaryrefslogtreecommitdiff
path: root/imgtest
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 /imgtest
parent52f12dfc10edfc4dd063b610f65dd2e901d3080c (diff)
correct window scale
Diffstat (limited to 'imgtest')
-rw-r--r--imgtest/src/ofApp.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/imgtest/src/ofApp.cpp b/imgtest/src/ofApp.cpp
index 3f33d8d..411c5c2 100644
--- a/imgtest/src/ofApp.cpp
+++ b/imgtest/src/ofApp.cpp
@@ -61,17 +61,19 @@ void ofApp::update(){
strm << "fps: " << ofGetFrameRate();
ofSetWindowTitle(strm.str());
+ if (currentImage){
+ if (currentImage->update()){ //if returns true, switch images
+ currentImage=currentImage->link;
+ currentImage->start();
+ ofLogNotice() << "Switched images";
+ currentFrame=0;
+ //viewpoint.resetTransform(); //or we get a glitch for no apparent reason, or not
+ currentImage->update();
+ }
+ }
+
- if (currentImage->update()){ //if returns true, switch images
- currentImage=currentImage->link;
- currentImage->start();
- ofLogNotice() << "Switched images";
- currentFrame=0;
- //viewpoint.resetTransform(); //or we get a glitch for no apparent reason, or not
- currentImage->update();
- }
-
- //viewpoint misbehaves the first frame it is moved.
+ //viewpoint misbehaves the first frame it is moved?
}