Skip to content

Commit e80893a

Browse files
committed
Reset font size when displaying markdown tooltip.
1 parent 912f8c0 commit e80893a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

profiler/src/profiler/TracyMarkdown.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ class MarkdownContext
399399

400400
ImGui::SetMouseCursor( ImGuiMouseCursor_Hand );
401401
ImGui::BeginTooltip();
402+
ImGui::PushFont( g_fonts.normal, FontNormal );
402403
ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 1.f, 1.f, 1.f, 1.f ) );
403404
if( isSource )
404405
{
@@ -456,6 +457,7 @@ class MarkdownContext
456457
ImGui::TextUnformatted( link.c_str() );
457458
}
458459
ImGui::PopStyleColor();
460+
ImGui::PopFont();
459461
ImGui::EndTooltip();
460462
if( IsMouseClicked( ImGuiMouseButton_Left ) )
461463
{

0 commit comments

Comments
 (0)