[win] cwindowplatform: fix frame in compat mode

This commit is contained in:
SimplestStudio
2026-01-22 15:49:21 +02:00
parent 4f19e38300
commit 0fd96b14fe

View File

@ -210,7 +210,12 @@ CWindowPlatform::CWindowPlatform(const QRect &rect) :
m_isResizeable(true)
// m_allowMaximize(true)
{
winVer = Utils::getWinVersion();
if (Utils::IsRunningInCompatibilityMode()) {
winVer = WinVer::WinXP;
pGetSystemMetricsForDpi = nullptr;
} else {
winVer = Utils::getWinVersion();
}
m_isThemeActive = isThemeActive();
m_isTaskbarAutoHideOn = isTaskbarAutoHideOn();
m_borderless = isCustomWindowStyle();