From 36970d721264efe262a6f6e1487623a4fc630b65 Mon Sep 17 00:00:00 2001 From: tanganke Date: Thu, 4 Nov 2021 13:43:56 +0800 Subject: [PATCH] no ini file --- include/Window.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/Window.h b/include/Window.h index bf9ac65..6aeadb4 100644 --- a/include/Window.h +++ b/include/Window.h @@ -1,6 +1,7 @@ #include #define GLFW_INCLUDE_NONE #include +#define _USE_MATH_DEFINES #include #include #include @@ -79,6 +80,7 @@ class Window glfwGetMonitorContentScale(glfwGetPrimaryMonitor(), &xscale, &yscale); // io.Fonts->AddFontFromFileTTF(font_file.c_str(), 15 * (xscale + yscale) / 2); io.FontGlobalScale = (xscale + yscale) / 2; + io.IniFilename = nullptr; } inline void BeginUIFrame()