File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff 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// --------------------------------------------------------------
166165void 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// --------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments