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

Pass big font to TracyView.

This commit is contained in:
Bartosz Taudul
2019-07-12 19:16:56 +02:00
parent fc28f827bc
commit 7fb9bde9e9
3 changed files with 13 additions and 9 deletions
+4 -2
View File
@@ -100,12 +100,13 @@ enum { MinFrameSize = 5 };
static View* s_instance = nullptr;
View::View( const char* addr, ImFont* fixedWidth, SetTitleCallback stcb )
View::View( const char* addr, ImFont* fixedWidth, ImFont* bigFont, SetTitleCallback stcb )
: m_worker( addr )
, m_staticView( false )
, m_pause( false )
, m_frames( nullptr )
, m_textEditorFont( fixedWidth )
, m_bigFont( bigFont )
, m_stcb( stcb )
{
assert( s_instance == nullptr );
@@ -114,12 +115,13 @@ View::View( const char* addr, ImFont* fixedWidth, SetTitleCallback stcb )
InitTextEditor();
}
View::View( FileRead& f, ImFont* fixedWidth, SetTitleCallback stcb )
View::View( FileRead& f, ImFont* fixedWidth, ImFont* bigFont, SetTitleCallback stcb )
: m_worker( f )
, m_staticView( true )
, m_pause( true )
, m_frames( m_worker.GetFramesBase() )
, m_textEditorFont( fixedWidth )
, m_bigFont( bigFont )
, m_stcb( stcb )
{
assert( s_instance == nullptr );