From b16fc51f47b0a922fe9c6895f2ecd84d02c749bb Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Fri, 8 Dec 2023 18:49:38 +0800 Subject: [PATCH] Update lv_windows_enable_child_window_dpi_message. --- LvglWindowsSimulator/win32drv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LvglWindowsSimulator/win32drv.c b/LvglWindowsSimulator/win32drv.c index bd87b74..e77b975 100644 --- a/LvglWindowsSimulator/win32drv.c +++ b/LvglWindowsSimulator/win32drv.c @@ -436,13 +436,14 @@ static HDC lv_windows_create_frame_buffer( static BOOL lv_windows_enable_child_window_dpi_message( HWND WindowHandle) { - // This hack is only for Windows 10 TH1/TH2 only. - // We don't need this hack if the Per Monitor Aware V2 is existed. + // The private Per-Monitor DPI Awareness support extension is Windows 10 + // only. We don't need the private Per-Monitor DPI Awareness support + // extension if the Per-Monitor (V2) DPI Awareness exists. OSVERSIONINFOEXW OSVersionInfoEx = { 0 }; OSVersionInfoEx.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); OSVersionInfoEx.dwMajorVersion = 10; OSVersionInfoEx.dwMinorVersion = 0; - OSVersionInfoEx.dwBuildNumber = 14393; + OSVersionInfoEx.dwBuildNumber = 14986; if (!VerifyVersionInfoW( &OSVersionInfoEx, VER_MAJORVERSION | VER_MINORVERSION | VER_BUILDNUMBER,