diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-03-27 15:16:19 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-03-27 15:43:11 +0300 |
commit | 0b6e55ee87b889a5340c85348a3970d4739ffe7d (patch) | |
tree | 999f2e6f298b78900eabd7c6002e551ec31de1dd | |
parent | d56f7dab099ac026a2a04028feac6c961f67bf0d (diff) |
Store fixed-width font in View.
-rw-r--r-- | server/TracyView.cpp | 2 | ||||
-rw-r--r-- | server/TracyView.hpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9df54c90..4f69bea6 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -134,6 +134,7 @@ View::View( void(*cbMainThread)(std::function<void()>), const char* addr, uint16 , m_reactToLostConnection( true ) , m_smallFont( smallFont ) , m_bigFont( bigFont ) + , m_fixedFont( fixedWidth ) , m_stcb( stcb ) , m_gwcb( gwcb ) , m_userData() @@ -155,6 +156,7 @@ View::View( void(*cbMainThread)(std::function<void()>), FileRead& f, ImFont* fix , m_messagesScrollBottom( false ) , m_smallFont( smallFont ) , m_bigFont( bigFont ) + , m_fixedFont( fixedWidth ) , m_stcb( stcb ) , m_gwcb( gwcb ) , m_userData( m_worker.GetCaptureProgram().c_str(), m_worker.GetCaptureTime() ) diff --git a/server/TracyView.hpp b/server/TracyView.hpp index e1ff099c..af2418ec 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -420,6 +420,7 @@ private: ImFont* m_smallFont; ImFont* m_bigFont; + ImFont* m_fixedFont; float m_rootWidth, m_rootHeight; SetTitleCallback m_stcb; |