mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Update source view font.
This commit is contained in:
parent
04477a64b7
commit
fdadb9cb63
@ -143,6 +143,7 @@ public:
|
||||
|
||||
SourceView( ImFont* font, GetWindowCallback gwcb );
|
||||
|
||||
void UpdateFont( ImFont* font ) { m_font = font; }
|
||||
void SetCpuId( uint32_t cpuid );
|
||||
|
||||
void OpenSource( const char* fileName, int line, const View& view, const Worker& worker );
|
||||
|
@ -15279,6 +15279,7 @@ void View::DrawTextEditor()
|
||||
ImGui::SetNextWindowSize( ImVec2( 1800 * scale, 800 * scale ), ImGuiCond_FirstUseEver );
|
||||
bool show = true;
|
||||
ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar );
|
||||
m_sourceView->UpdateFont( m_fixedFont );
|
||||
m_sourceView->Render( m_worker, *this );
|
||||
ImGui::End();
|
||||
if( !show ) m_sourceViewFile = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user