From 12a964d3bef20b189fa0c9312769fd36665007aa Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 10 Feb 2026 16:33:02 -0500 Subject: [PATCH] fix: UI zoom scale not applying on macOS On macOS with Retina displays, dpiScale is 2.0 but gets overridden to userScale alone under __APPLE__. The early-return check compared prevScale against the pre-override value (dpiScale * userScale), which for 50% zoom evaluates to 2.0 * 0.5 = 1.0, matching the previous prevScale of 1.0 and causing an early return before the scale change could take effect. Moving the __APPLE__ override before the early-return check ensures the comparison uses the actual effective scale. --- profiler/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 11e0d659..dc95c361 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -161,14 +161,14 @@ static void SetupDPIScale() { auto scale = dpiScale * tracy::s_config.userScale; - if( !dpiFirstSetup && prevScale == scale ) return; - dpiFirstSetup = false; - dpiChanged = 2; - #ifdef __APPLE__ scale = tracy::s_config.userScale; #endif + if( !dpiFirstSetup && prevScale == scale ) return; + dpiFirstSetup = false; + dpiChanged = 2; + LoadFonts( scale ); auto& style = ImGui::GetStyle();