summaryrefslogtreecommitdiff
path: root/audioin
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2022-11-16 00:20:55 +0000
committerTim Redfern <tim@getdrop.com>2022-11-16 00:20:55 +0000
commit92db935dfa043d1e6e2f65b6fe157329c5ced521 (patch)
tree8d8bc49b2618bb3aa378bcd5ea0fa3dd74351aee /audioin
parent21a7fe9d7d125be58c4dcfa09db469e83f16780d (diff)
extend past edge of screen
Diffstat (limited to 'audioin')
-rw-r--r--audioin/src/ofApp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/audioin/src/ofApp.cpp b/audioin/src/ofApp.cpp
index b2d9810..9160f65 100644
--- a/audioin/src/ofApp.cpp
+++ b/audioin/src/ofApp.cpp
@@ -48,7 +48,7 @@ void ofApp::draw(){
line.addVertex(0,buffer[0]);
float i=0.0f;
- while (i<ofGetWidth()){
+ while (i<(ofGetWidth()+hScale)){
i+=max(1.0f,hScale);
line.curveTo(i,buffer[(int)i]);
}