I had introduced this bug recently in https://github.com/wolfpld/tracy/pull/369

Fixes #379
This commit is contained in:
Benoit Jacob 2022-05-04 16:00:08 +00:00
parent f4581c398c
commit 2c4fe22f50

View File

@ -3091,8 +3091,8 @@ void SourceView::RenderLine( const Tokenizer::Line& line, int lineNum, const Add
{
RenderHwLinePart( cycles, retired, branchRetired, branchMiss, cacheRef, cacheMiss, 0, 0, 0, 0, ts );
}
}
ImGui::SameLine( 0, 0 );
}
const auto endPos = ImGui::GetCursorScreenPos();
const auto itemsWidth = ( endPos - startPos ).x;
const auto fixedWidth = 17 * ts.x;
@ -3404,8 +3404,8 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
{
RenderHwLinePart( cycles, retired, branchRetired, branchMiss, cacheRef, cacheMiss, 0, 0, 0, 0, ts );
}
}
ImGui::SameLine( 0, 0 );
}
const auto endPos = ImGui::GetCursorScreenPos();
const auto itemsWidth = ( endPos - startPos ).x;
const auto fixedWidth = 17 * ts.x;