From 0b6e55ee87b889a5340c85348a3970d4739ffe7d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Mar 2021 13:16:19 +0100 Subject: [PATCH] Store fixed-width font in View. --- server/TracyView.cpp | 2 ++ server/TracyView.hpp | 1 + 2 files changed, 3 insertions(+) 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), 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), 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;