From b8766ad5d7f43f0695e50e78f4b0a7208d2a36a6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 20 Nov 2021 01:24:37 +0100 Subject: [PATCH] Apply DPI scale to text shadow. --- server/TracyImGui.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index 51569c81..2784f464 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -150,7 +150,8 @@ static const ImVec4 SyntaxColorsDimmed[] = { [[maybe_unused]] static inline void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text ) { - draw->AddText( pos + ImVec2( 1, 1 ), 0xAA000000, text ); + const auto scale = GetScale(); + draw->AddText( pos + ImVec2( scale, scale ), 0xAA000000, text ); draw->AddText( pos, color, text ); }