mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Don't pass font to SourceView ctor.
This commit is contained in:
parent
3e78c826cf
commit
f0d524ad1f
@ -161,8 +161,8 @@ static void PrintHwSampleTooltip( size_t cycles, size_t retired, size_t cacheRef
|
|||||||
enum { JumpSeparation = 6 };
|
enum { JumpSeparation = 6 };
|
||||||
enum { JumpArrowBase = 9 };
|
enum { JumpArrowBase = 9 };
|
||||||
|
|
||||||
SourceView::SourceView( ImFont* font, GetWindowCallback gwcb )
|
SourceView::SourceView( GetWindowCallback gwcb )
|
||||||
: m_font( font )
|
: m_font( nullptr )
|
||||||
, m_symAddr( 0 )
|
, m_symAddr( 0 )
|
||||||
, m_targetAddr( 0 )
|
, m_targetAddr( 0 )
|
||||||
, m_targetLine( 0 )
|
, m_targetLine( 0 )
|
||||||
|
@ -142,7 +142,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
using GetWindowCallback = void*(*)();
|
using GetWindowCallback = void*(*)();
|
||||||
|
|
||||||
SourceView( ImFont* font, GetWindowCallback gwcb );
|
SourceView( GetWindowCallback gwcb );
|
||||||
|
|
||||||
void UpdateFont( ImFont* font ) { m_font = font; }
|
void UpdateFont( ImFont* font ) { m_font = font; }
|
||||||
void SetCpuId( uint32_t cpuid );
|
void SetCpuId( uint32_t cpuid );
|
||||||
|
@ -234,7 +234,7 @@ void View::InitMemory()
|
|||||||
|
|
||||||
void View::InitTextEditor( ImFont* font )
|
void View::InitTextEditor( ImFont* font )
|
||||||
{
|
{
|
||||||
m_sourceView = std::make_unique<SourceView>( font, m_gwcb );
|
m_sourceView = std::make_unique<SourceView>( m_gwcb );
|
||||||
m_sourceViewFile = nullptr;
|
m_sourceViewFile = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user