Skip to content

Commit

Permalink
fixup! feat: improve screen rendering framework
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Oct 21, 2024
1 parent 75adb41 commit c192b8a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,13 @@ void ControllerScriptEngineLegacy::handleScreenFrame(
qCWarning(m_logger) << "Unable to find transform function info for the given screen";
return;
};
VERIFY_OR_DEBUG_ASSERT(m_rootItems.contains(screenInfo.identifier)) {
auto itScreen = m_rootItems.find(screenInfo.identifier);
VERIFY_OR_DEBUG_ASSERT(itScreen != m_rootItems.end()) {
qCWarning(m_logger) << "Unable to find a root item for the given screen";
return;
};

auto& pScreen = m_rootItems.at(screenInfo.identifier);
auto& pScreen = itScreen->second;

if (CmdlineArgs::Instance().getControllerPreviewScreens()) {
QImage screenDebug(frame);
Expand Down

0 comments on commit c192b8a

Please sign in to comment.