[WIN32SS][SHELL32] Fix the location and repaint of the version info shown on the desktop. Patch by Katayama Hirofumi MZ.

CORE-13567 #resolve #comment Thanks!

svn path=/trunk/; revision=75390
This commit is contained in:
Mark Jansen 2017-07-22 18:27:32 +00:00
parent 6e74f9217a
commit 808c1d2aac
2 changed files with 7 additions and 0 deletions

View file

@ -383,6 +383,8 @@ LRESULT CDesktopBrowser::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &b
::ShowWindow(m_hWnd, SW_RESTORE);
}
::InvalidateRect(m_hWndShellView, NULL, TRUE);
return 0;
}

View file

@ -1346,9 +1346,14 @@ IntPaintDesktop(HDC hDC)
if (!UserSystemParametersInfo(SPI_GETWORKAREA, 0, &Rect, 0))
{
Rect.left = Rect.top = 0;
Rect.right = UserGetSystemMetrics(SM_CXSCREEN);
Rect.bottom = UserGetSystemMetrics(SM_CYSCREEN);
}
else
{
RECTL_vOffsetRect(&Rect, -Rect.left, -Rect.top);
}
/*
* Set up the fonts (otherwise use default ones)