mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const auto envDpiScale = getenv( "TRACY_DPI_SCALE" );
|
||||||
|
if( envDpiScale )
|
||||||
|
{
|
||||||
|
const auto cnv = atof( envDpiScale );
|
||||||
|
if( cnv != 0 ) dpiScale = cnv;
|
||||||
|
}
|
||||||
|
|
||||||
// Setup ImGui binding
|
// Setup ImGui binding
|
||||||
IMGUI_CHECKVERSION();
|
IMGUI_CHECKVERSION();
|
||||||
ImGui::CreateContext();
|
ImGui::CreateContext();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user