[win] cwindowplatform: fix window size for WinVista

This commit is contained in:
SimplestStudio
2024-12-11 17:40:17 +02:00
parent 22ef7b9e83
commit 7522948df9

View File

@ -344,7 +344,7 @@ bool CWindowPlatform::event(QEvent * event)
void CWindowPlatform::resizeEvent(QResizeEvent *ev)
{
CWindowBase::resizeEvent(ev);
if (m_borderless && Utils::getWinVersion() == WinVer::WinXP) {
if (m_borderless && Utils::getWinVersion() <= WinVer::WinVista) {
RECT rc;
GetClientRect(m_hWnd, &rc);
if (centralWidget()) {