From b33fbd86f249ef01d8284a5264b7d20e3565843b Mon Sep 17 00:00:00 2001 From: test123456654321 <16307130148@fudan.edu.cn> Date: Sun, 27 Oct 2024 14:58:56 +0800 Subject: [PATCH] fix --- src/plugins/CMakeLists.txt | 4 ++-- src/plugins/winsharedutils/hwnd.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 2a728a05..5423c711 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -28,8 +28,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/version) include(generate_product_version) set(VERSION_MAJOR 5) -set(VERSION_MINOR 50) -set(VERSION_PATCH 5) +set(VERSION_MINOR 51) +set(VERSION_PATCH 0) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h) diff --git a/src/plugins/winsharedutils/hwnd.cpp b/src/plugins/winsharedutils/hwnd.cpp index cbf0c3fa..c6cd8652 100644 --- a/src/plugins/winsharedutils/hwnd.cpp +++ b/src/plugins/winsharedutils/hwnd.cpp @@ -101,7 +101,7 @@ DECLARE UINT GetMonitorDpiScaling(HWND hwnd) HMONITOR hMonitor = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST); if (!hMonitor) return 96; - auto pGetDpiForMonitor = (HRESULT(*)(HMONITOR, MONITOR_DPI_TYPE, UINT *, UINT *))GetProcAddress(GetModuleHandleA("Shcore.dll"), "GetDpiForMonitor"); + auto pGetDpiForMonitor = (HRESULT(STDAPICALLTYPE *)(HMONITOR, MONITOR_DPI_TYPE, UINT *, UINT *))GetProcAddress(GetModuleHandleA("Shcore.dll"), "GetDpiForMonitor"); if (pGetDpiForMonitor) { UINT dpiX = 0;