mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
View::InitTextEditor() doesn't need font parameter.
This commit is contained in:
parent
1c13c1ee8f
commit
31b3fcd1fe
@ -65,7 +65,7 @@ View::View( void(*cbMainThread)(const std::function<void()>&, bool), const char*
|
|||||||
, m_cbMainThread( cbMainThread )
|
, m_cbMainThread( cbMainThread )
|
||||||
{
|
{
|
||||||
InitMemory();
|
InitMemory();
|
||||||
InitTextEditor( fixedWidth );
|
InitTextEditor();
|
||||||
}
|
}
|
||||||
|
|
||||||
View::View( void(*cbMainThread)(const std::function<void()>&, bool), FileRead& f, ImFont* fixedWidth, ImFont* smallFont, ImFont* bigFont, SetTitleCallback stcb, SetScaleCallback sscb, AttentionCallback acb )
|
View::View( void(*cbMainThread)(const std::function<void()>&, bool), FileRead& f, ImFont* fixedWidth, ImFont* smallFont, ImFont* bigFont, SetTitleCallback stcb, SetScaleCallback sscb, AttentionCallback acb )
|
||||||
@ -89,7 +89,7 @@ View::View( void(*cbMainThread)(const std::function<void()>&, bool), FileRead& f
|
|||||||
m_notificationText = std::string( "Trace loaded in " ) + TimeToString( m_worker.GetLoadTime() );
|
m_notificationText = std::string( "Trace loaded in " ) + TimeToString( m_worker.GetLoadTime() );
|
||||||
|
|
||||||
InitMemory();
|
InitMemory();
|
||||||
InitTextEditor( fixedWidth );
|
InitTextEditor();
|
||||||
m_vd.zvStart = m_worker.GetFirstTime();
|
m_vd.zvStart = m_worker.GetFirstTime();
|
||||||
m_vd.zvEnd = m_worker.GetLastTime();
|
m_vd.zvEnd = m_worker.GetLastTime();
|
||||||
m_userData.StateShouldBePreserved();
|
m_userData.StateShouldBePreserved();
|
||||||
@ -142,7 +142,7 @@ void View::InitMemory()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::InitTextEditor( ImFont* font )
|
void View::InitTextEditor()
|
||||||
{
|
{
|
||||||
m_sourceView = std::make_unique<SourceView>();
|
m_sourceView = std::make_unique<SourceView>();
|
||||||
m_sourceViewFile = nullptr;
|
m_sourceViewFile = nullptr;
|
||||||
|
@ -212,7 +212,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
void InitMemory();
|
void InitMemory();
|
||||||
void InitTextEditor( ImFont* font );
|
void InitTextEditor();
|
||||||
|
|
||||||
bool DrawImpl();
|
bool DrawImpl();
|
||||||
void DrawNotificationArea();
|
void DrawNotificationArea();
|
||||||
|
Loading…
Reference in New Issue
Block a user