From 45fb6df8f3063112c2c459cded0e8de08512af9a Mon Sep 17 00:00:00 2001 From: Nanako <469449812@qq.com> Date: Wed, 10 Jul 2024 22:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8windows=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=BC=80=E5=90=AFDPI=E6=84=9F=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- imgui_windows_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_windows_main.cpp b/imgui_windows_main.cpp index d7e5810..9e40b5b 100644 --- a/imgui_windows_main.cpp +++ b/imgui_windows_main.cpp @@ -27,7 +27,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); // Main code int init_imgui() { // Create application window - //ImGui_ImplWin32_EnableDpiAwareness(); + ImGui_ImplWin32_EnableDpiAwareness(); wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"Arona", nullptr }; ::RegisterClassExW(&wc); std::string window_title = get_window_title();