From 44096dfcf2279f9c27fe2390ddc73463770ad5af Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 30 Mar 2020 22:39:34 +0200 Subject: [PATCH] Move DrawTextContrast() to TracyImGui.hpp. --- server/TracyImGui.hpp | 6 ++++++ server/TracyView.cpp | 6 ------ server/TracyView.hpp | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index 023c7f88..0ff4cab8 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -89,6 +89,12 @@ namespace tracy } } + static inline void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text ) + { + draw->AddText( pos + ImVec2( 1, 1 ), 0xAA000000, text ); + draw->AddText( pos, color, text ); + } + } #endif diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6534bfec..3dd9b97d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -292,12 +292,6 @@ void View::DrawHelpMarker( const char* desc ) const } } -void View::DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text ) -{ - draw->AddText( pos + ImVec2( 1, 1 ), 0xAA000000, text ); - draw->AddText( pos, color, text ); -} - bool View::Draw() { HandshakeStatus status = (HandshakeStatus)s_instance->m_worker.GetHandshakeStatus(); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 3db21700..25e13473 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -115,8 +115,6 @@ private: void DrawHelpMarker( const char* desc ) const; - void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text ); - bool DrawImpl(); void DrawNotificationArea(); bool DrawConnection();