mirror of
https://github.com/reactos/reactos.git
synced 2025-07-12 16:44:13 +00:00
[0.4.11][WIN32SS] Fix last user visible parts of regression CORE-10855
When Themesvc was disabled, some Window titlebar frames were drawn too thin until the window was actively resized in y by the user. That and similar symptoms started to show up after SVN r68904 ==6dfa71c487
Many thanks to patches author Doug Lyons. fix picked from commit 0.4.14-dev-121-g9e14a762d5
This commit is contained in:
parent
0a8d848514
commit
1490fc8d2f
1 changed files with 2 additions and 2 deletions
|
@ -420,7 +420,7 @@ UserPaintCaption(PWND pWnd, INT Flags)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
HDC hDC = UserGetDCEx(pWnd, NULL, DCX_WINDOW|DCX_USESTYLE);
|
HDC hDC = UserGetDCEx(pWnd, NULL, DCX_WINDOW|DCX_USESTYLE);
|
||||||
UserDrawCaptionBar(pWnd, hDC, Flags);
|
UserDrawCaptionBar(pWnd, hDC, Flags | DC_FRAME); // DCFRAME added as fix for CORE-10855.
|
||||||
UserReleaseDC(pWnd, hDC, FALSE);
|
UserReleaseDC(pWnd, hDC, FALSE);
|
||||||
}
|
}
|
||||||
Ret = TRUE;
|
Ret = TRUE;
|
||||||
|
@ -1124,7 +1124,7 @@ IntDefWindowProc(
|
||||||
{
|
{
|
||||||
HDC hDC = UserGetDCEx(Wnd, NULL, DCX_WINDOW|DCX_USESTYLE);
|
HDC hDC = UserGetDCEx(Wnd, NULL, DCX_WINDOW|DCX_USESTYLE);
|
||||||
TRACE("WM_NCUAHDRAWCAPTION: wParam DC_ flags %08x\n",wParam);
|
TRACE("WM_NCUAHDRAWCAPTION: wParam DC_ flags %08x\n",wParam);
|
||||||
UserDrawCaptionBar(Wnd, hDC, wParam|DC_FRAME); // Include DC_FRAME to comp for drawing glich.
|
UserDrawCaptionBar(Wnd, hDC, wParam | DC_FRAME); // Include DC_FRAME to comp for drawing glitch.
|
||||||
UserReleaseDC(Wnd, hDC, FALSE);
|
UserReleaseDC(Wnd, hDC, FALSE);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue