mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
[win] cwindowplatform: fix frame in compat mode
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user