Skip to content

Commit

Permalink
[win] cwindowplatform: fix window size for WinVista
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Dec 11, 2024
1 parent 22ef7b9 commit 7522948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win-linux/src/windows/platform_win/cwindowplatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 7522948

Please sign in to comment.