mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Allow manual setting of DPI scale.
This commit is contained in:
parent
5834a4be44
commit
8f8a28db60
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user