Allow manual setting of DPI scale.

This commit is contained in:
Bartosz Taudul 2021-06-17 00:52:50 +02:00
parent 5834a4be44
commit 8f8a28db60
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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