Merge pull request #381 from bjacob/fix-layout-379

Fix layout bug (https://github.com/wolfpld/tracy/issues/379)
This commit is contained in:
Bartosz Taudul 2022-05-04 21:48:34 +02:00 committed by GitHub
commit a354eb4ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3113,8 +3113,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 );
}
ImGui::SameLine( 0, 0 );
const auto endPos = ImGui::GetCursorScreenPos();
const auto itemsWidth = ( endPos - startPos ).x;
const auto fixedWidth = 17 * ts.x;
@ -3426,8 +3426,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 );
}
ImGui::SameLine( 0, 0 );
const auto endPos = ImGui::GetCursorScreenPos();
const auto itemsWidth = ( endPos - startPos ).x;
const auto fixedWidth = 17 * ts.x;