启用windows系统默认开启DPI感知

This commit is contained in:
Nanako 2024-07-10 22:08:58 +08:00
parent 79b37f1431
commit 45fb6df8f3

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