Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-07-12 20:16:56 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-07-12 20:16:56 +0300
commit7fb9bde9e9a4772611c7e7ad33b2f0ccbca8a267 (patch)
tree52469149b143173a890af100dfb784c057744529 /server/TracyView.hpp
parentfc28f827bc1aa7c7726ef4a1cca65b3718a8fefd (diff)
Pass big font to TracyView.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r--server/TracyView.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp
index 5ea4f567..bacc372c 100644
--- a/server/TracyView.hpp
+++ b/server/TracyView.hpp
@@ -61,9 +61,9 @@ public:
using SetTitleCallback = void(*)( const char* );
- View( ImFont* fixedWidth = nullptr, SetTitleCallback stcb = nullptr ) : View( "127.0.0.1", fixedWidth, stcb ) {}
- View( const char* addr, ImFont* fixedWidth = nullptr, SetTitleCallback stcb = nullptr );
- View( FileRead& f, ImFont* fixedWidth = nullptr, SetTitleCallback stcb = nullptr );
+ View( ImFont* fixedWidth = nullptr, ImFont* bigFont = nullptr, SetTitleCallback stcb = nullptr ) : View( "127.0.0.1", fixedWidth, bigFont, stcb ) {}
+ View( const char* addr, ImFont* fixedWidth = nullptr, ImFont* bigFont = nullptr, SetTitleCallback stcb = nullptr );
+ View( FileRead& f, ImFont* fixedWidth = nullptr, ImFont* bigFont = nullptr, SetTitleCallback stcb = nullptr );
~View();
static bool Draw();
@@ -312,6 +312,8 @@ private:
ImFont* m_textEditorFont;
bool m_textEditorWhitespace = true;
+ ImFont* m_bigFont;
+
float m_rootWidth, m_rootHeight;
SetTitleCallback m_stcb;
bool m_titleSet = false;