启用windows系统默认开启DPI感知
This commit is contained in:
parent
79b37f1431
commit
45fb6df8f3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user