Don't set dpiScale if not doing anything with it.

This commit is contained in:
Bartosz Taudul 2024-09-28 14:01:18 +02:00
parent 9f682c6015
commit 2435a76caa
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;
@ -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 )
{