From 8f8a28db607b8c768137c2986179e725a7da505b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 17 Jun 2021 00:52:50 +0200 Subject: [PATCH] Allow manual setting of DPI scale. --- profiler/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 04353ec7..adcaa081 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -297,6 +297,13 @@ int main( int argc, char** argv ) # endif #endif + const auto envDpiScale = getenv( "TRACY_DPI_SCALE" ); + if( envDpiScale ) + { + const auto cnv = atof( envDpiScale ); + if( cnv != 0 ) dpiScale = cnv; + } + // Setup ImGui binding IMGUI_CHECKVERSION(); ImGui::CreateContext();