mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Push big font to source view.
This commit is contained in:
parent
d3cb8ccef2
commit
fa0322f6b4
@ -143,7 +143,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
SourceView();
|
SourceView();
|
||||||
|
|
||||||
void UpdateFont( ImFont* fixed, ImFont* small ) { m_font = fixed; m_smallFont = small; }
|
void UpdateFont( ImFont* fixed, ImFont* small, ImFont* big ) { m_font = fixed; m_smallFont = small; m_bigFont = big; }
|
||||||
void SetCpuId( uint32_t cpuid );
|
void SetCpuId( uint32_t cpuid );
|
||||||
|
|
||||||
void OpenSource( const char* fileName, int line, const View& view, const Worker& worker );
|
void OpenSource( const char* fileName, int line, const View& view, const Worker& worker );
|
||||||
@ -200,6 +200,7 @@ private:
|
|||||||
|
|
||||||
ImFont* m_font;
|
ImFont* m_font;
|
||||||
ImFont* m_smallFont;
|
ImFont* m_smallFont;
|
||||||
|
ImFont* m_bigFont;
|
||||||
uint64_t m_symAddr;
|
uint64_t m_symAddr;
|
||||||
uint64_t m_baseAddr;
|
uint64_t m_baseAddr;
|
||||||
uint64_t m_targetAddr;
|
uint64_t m_targetAddr;
|
||||||
|
@ -1180,7 +1180,7 @@ void View::DrawTextEditor()
|
|||||||
ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar );
|
ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar );
|
||||||
if( !ImGui::GetCurrentWindowRead()->SkipItems )
|
if( !ImGui::GetCurrentWindowRead()->SkipItems )
|
||||||
{
|
{
|
||||||
m_sourceView->UpdateFont( m_fixedFont, m_smallFont );
|
m_sourceView->UpdateFont( m_fixedFont, m_smallFont, m_bigFont );
|
||||||
m_sourceView->Render( m_worker, *this );
|
m_sourceView->Render( m_worker, *this );
|
||||||
}
|
}
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
Loading…
Reference in New Issue
Block a user