windows下自动DPI感知会导致字体模糊,所以禁用自动感知

This commit is contained in:
Nanako 2024-07-10 22:13:12 +08:00
parent 45fb6df8f3
commit 84fcabdd55

View File

@ -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();