From 808c1d2aac6160b973eadb5b70eb9cb5e4cd855a Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 22 Jul 2017 18:27:32 +0000 Subject: [PATCH] [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 --- reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp | 2 ++ reactos/win32ss/user/ntuser/desktop.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp b/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp index dacc0c2e868..e452039aa6f 100644 --- a/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp +++ b/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp @@ -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; } diff --git a/reactos/win32ss/user/ntuser/desktop.c b/reactos/win32ss/user/ntuser/desktop.c index 7464091b780..6ecf94b30e8 100644 --- a/reactos/win32ss/user/ntuser/desktop.c +++ b/reactos/win32ss/user/ntuser/desktop.c @@ -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) -- 2.17.1