Skip to content

Commit 0de1137

Browse files
committed
fixes for retina screen
1 parent d813a5f commit 0de1137

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/objects/gui/moTimeline.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ void moTimeline::updateObjectContent(map<int,shared_ptr<PatchObject>> &patchObje
254254
this->filepath = this->patchFolderPath+"timeline"+ofToString(this->nId)+"/";
255255
loadTimelineData(this->filepath);
256256
}
257+
// force init for retina screens
258+
ofResizeEventArgs te;
259+
te.width = window->getWidth();
260+
te.height = window->getHeight();
261+
timeline->windowResized(te);
262+
timeline->setWidth(window->getWidth());
257263
}
258264

259265
// auto remove
@@ -372,6 +378,11 @@ void moTimeline::drawObjectNodeConfig(){
372378

373379
if(ImGui::Checkbox("Retina Screen",&retinaScreen)){
374380
timeline->forceRetina = retinaScreen;
381+
ofResizeEventArgs te;
382+
te.width = window->getWidth();
383+
te.height = window->getHeight();
384+
timeline->windowResized(te);
385+
timeline->setWidth(window->getWidth());
375386
}
376387
ImGui::Spacing();
377388
if(ImGui::InputInt("Duration",&durationInSeconds)){

0 commit comments

Comments
 (0)