Skip to content

Commit

Permalink
BMD fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Mar 5, 2025
1 parent 3948bbb commit 5940e27
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/tlDevice/BMDOutputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,15 @@ namespace tl
p.thread.render->setOCIOOptions(ocioOptions);
p.thread.render->setLUTOptions(lutOptions);

const auto pm = dtk::ortho(
0.F,
static_cast<float>(p.thread.size.w),
0.F,
static_cast<float>(p.thread.size.h),
-1.F,
1.F);
p.thread.render->setTransform(pm);

const auto boxes = timeline::getBoxes(compareOptions.compare, p.thread.videoData);
dtk::V2I viewPosTmp = p.thread.viewPos;
double viewZoomTmp = p.thread.viewZoom;
Expand All @@ -1062,13 +1071,6 @@ namespace tl
vm = vm * dtk::scale(dtk::V3F(viewZoomTmp, viewZoomTmp, 1.F));
p.thread.render->drawBackground(boxes, vm, bgOptions);

const auto pm = dtk::ortho(
0.F,
static_cast<float>(p.thread.size.w),
0.F,
static_cast<float>(p.thread.size.h),
-1.F,
1.F);
p.thread.render->setTransform(pm * vm);
p.thread.render->drawVideo(
p.thread.videoData,
Expand Down

0 comments on commit 5940e27

Please sign in to comment.