diff --git a/standalone/build/win32/Tracy.vcxproj b/standalone/build/win32/Tracy.vcxproj
index 229f6ef7..51a7f317 100644
--- a/standalone/build/win32/Tracy.vcxproj
+++ b/standalone/build/win32/Tracy.vcxproj
@@ -62,6 +62,9 @@
ws2_32.lib;opengl32.lib;..\..\libs\glfw\lib-vc2015\glfw3.lib;%(AdditionalDependencies)
Windows
+
+ true
+
@@ -85,6 +88,9 @@
ws2_32.lib;opengl32.lib;..\..\libs\glfw\lib-vc2015\glfw3.lib;%(AdditionalDependencies)
Windows
+
+ true
+
diff --git a/standalone/src/main.cpp b/standalone/src/main.cpp
index 92cf0989..355f7eb7 100644
--- a/standalone/src/main.cpp
+++ b/standalone/src/main.cpp
@@ -7,6 +7,10 @@
#include "../nfd/nfd.h"
#include
+#ifdef _WIN32
+# include
+#endif
+
#include "../../server/TracyBadVersion.hpp"
#include "../../server/TracyFileRead.hpp"
#include "../../server/TracyView.hpp"
@@ -45,6 +49,11 @@ int main( int argc, char** argv )
glfwSwapInterval(1); // Enable vsync
gl3wInit();
+ float dpiScale = 1.f;
+#ifdef _WIN32
+ dpiScale = GetDpiForSystem() / 96.f;
+#endif
+
// Setup ImGui binding
ImGui::CreateContext();
ImGui_ImplGlfwGL3_Init(window, true);
@@ -65,7 +74,7 @@ int main( int argc, char** argv )
if( stat( font, &st ) == 0 )
{
ImGuiIO& io = ImGui::GetIO();
- io.Fonts->AddFontFromFileTTF( font, 15.0f );
+ io.Fonts->AddFontFromFileTTF( font, 15.0f * dpiScale );
}
}