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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user