Skip to content

Commit 6ff3fb7

Browse files
committed
small fixes
1 parent 5540bb8 commit 6ff3fb7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/objects/sound/PDPatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include "PDPatch.h"
3838

3939
//--------------------------------------------------------------
40-
PDPatch::PDPatch() : PatchObject(){
40+
PDPatch::PDPatch() : PatchObject("pd patch"){
4141

4242
this->numInlets = 5;
4343
this->numOutlets = 5;

src/objects/windowing/OutputWindow.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ void OutputWindow::setupObjectContent(shared_ptr<ofAppGLFWWindow> &mainWindow){
132132
settings.setSize(window_actual_width, window_actual_height);
133133

134134
window = dynamic_pointer_cast<ofAppGLFWWindow>(ofCreateWindow(settings));
135-
window->setWindowTitle("Projector"+ofToString(this->getId()));
136135
window->setVerticalSync(false);
137136
window->setWindowPosition(this->getCustomVar("OUTPUT_POSX"),this->getCustomVar("OUTPUT_POSY"));
138137

@@ -164,6 +163,9 @@ void OutputWindow::setupObjectContent(shared_ptr<ofAppGLFWWindow> &mainWindow){
164163

165164
//--------------------------------------------------------------
166165
void OutputWindow::updateObjectContent(map<int,shared_ptr<PatchObject>> &patchObjects){
166+
167+
window->setWindowTitle("output window | id: "+ofToString(this->getId()));
168+
167169
if(needReset){
168170
needReset = false;
169171
resetOutputResolution();
@@ -710,6 +712,9 @@ void OutputWindow::mouseReleased(ofMouseEventArgs &e){
710712
static_cast<LiveCoding *>(_inletParams[1])->lua.scriptMouseReleased(static_cast<int>(tm.x),static_cast<int>(tm.y), e.button);
711713
}
712714
}
715+
716+
this->setCustomVar(window->getWindowPosition().x,"OUTPUT_POSX");
717+
this->setCustomVar(window->getWindowPosition().y,"OUTPUT_POSY");
713718
}
714719

715720
//--------------------------------------------------------------

0 commit comments

Comments
 (0)