Update source view font.

This commit is contained in:
Bartosz Taudul 2021-11-18 23:03:17 +01:00
parent 04477a64b7
commit fdadb9cb63
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 2 additions and 0 deletions

View File

@ -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 );

View File

@ -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;