1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add font set/unset helpers.

This commit is contained in:
Bartosz Taudul
2021-11-19 21:06:07 +01:00
parent dd8083e0ee
commit e0a6c51a2f
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -4837,4 +4837,14 @@ void SourceView::Save( const Worker& worker, size_t start, size_t stop )
}
#endif
void SourceView::SetFont()
{
if( m_font ) ImGui::PushFont( m_font );
}
void SourceView::UnsetFont()
{
if( m_font ) ImGui::PopFont();
}
}