From 132ab12c326ae4b5cbd158ad2465f6988022d414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sun, 5 May 2024 00:06:01 +0800 Subject: [PATCH] update --- src/FluFrameless.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FluFrameless.cpp b/src/FluFrameless.cpp index da583654..862842f4 100644 --- a/src/FluFrameless.cpp +++ b/src/FluFrameless.cpp @@ -271,6 +271,7 @@ void FluFrameless::componentComplete() { *result = TRUE; return true; } else if (uMsg == WM_GETMINMAXINFO) { +#if (QT_VERSION == QT_VERSION_CHECK(6, 5, 3) || QT_VERSION == QT_VERSION_CHECK(6, 6, 0)) auto *minmaxInfo = reinterpret_cast(lParam); auto pixelRatio = window()->devicePixelRatio(); auto geometry = window()->screen()->availableGeometry(); @@ -280,6 +281,7 @@ void FluFrameless::componentComplete() { minmaxInfo->ptMaxPosition.y = rect.top; minmaxInfo->ptMaxSize.x = qRound(geometry.width() * pixelRatio); minmaxInfo->ptMaxSize.y = qRound(geometry.height() * pixelRatio); +#endif return false; } else if (_isWindows11OrGreater && (uMsg == WM_NCLBUTTONDBLCLK || uMsg == WM_NCLBUTTONDOWN)) { if (_hitMaximizeButton()) {