Skip to content

Commit

Permalink
Don't set dpiScale if not doing anything with it.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 28, 2024
1 parent 9f682c6 commit 2435a76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions profiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static char addr[1024] = { "127.0.0.1" };
static ConnectionHistory* connHist;
static std::atomic<ViewShutdown> viewShutdown { ViewShutdown::False };
static double animTime = 0;
static float dpiScale = 1.f;
static float dpiScale = -1.f;
static bool dpiScaleOverriddenFromEnv = false;
static float userScale = 1.f;
static float prevScale = 1.f;
Expand Down Expand Up @@ -385,7 +385,6 @@ int main( int argc, char** argv )
backend.SetIcon( iconPx, iconX, iconY );
bptr = &backend;

dpiScale = backend.GetDpiScale();
const auto envDpiScale = getenv( "TRACY_DPI_SCALE" );
if( envDpiScale )
{
Expand Down

0 comments on commit 2435a76

Please sign in to comment.