Skip to content

Commit 5153f58

Browse files
committed
avoid some mis-rendering
1 parent 58ba682 commit 5153f58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/objects/windowing/OutputWindow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ void OutputWindow::toggleWindowFullscreen(){
531531

532532
//--------------------------------------------------------------
533533
void OutputWindow::drawInWindow(ofEventArgs &e){
534+
unusedArgs(e);
535+
534536
ofBackground(0);
535537

536538
if(hideMouse){
@@ -540,6 +542,8 @@ void OutputWindow::drawInWindow(ofEventArgs &e){
540542
}
541543

542544
ofPushStyle();
545+
ofPushView();
546+
ofPushMatrix();
543547
if(this->inletsConnected[0] && static_cast<ofTexture *>(_inletParams[0])->isAllocated()){
544548

545549
ofSetColor(255);
@@ -549,6 +553,8 @@ void OutputWindow::drawInWindow(ofEventArgs &e){
549553
static_cast<ofTexture *>(_inletParams[0])->draw(thposX, thposY, thdrawW, thdrawH);
550554
}
551555
}
556+
ofPopMatrix();
557+
ofPopView();
552558
ofPopStyle();
553559

554560
}

0 commit comments

Comments
 (0)