[USER32][NTUSER] Fill by white in DrawFrameControl:DFC_MENU (#4779)

DrawFrameControl:DFC_MENU draws the monochrome image of menu arrow or checkmark. However, the function didn't draw the entire rectangle correctly when the rectangle was not a square. CORE-18417
This commit is contained in:
Katayama Hirofumi MZ 2022-10-15 21:00:13 +09:00 committed by GitHub
parent b448fbdf59
commit 13868ee0e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -959,6 +959,7 @@ BOOL FASTCALL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
WCHAR Symbol;
RECT myr;
INT cxy;
FillRect(dc, r, (HBRUSH)NtGdiGetStockObject(WHITE_BRUSH));
cxy = UITOOLS_MakeSquareRect(r, &myr);
switch(uFlags & 0x1f)
{

View file

@ -978,6 +978,7 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
TCHAR Symbol;
RECT myr;
INT cxy;
FillRect(dc, r, (HBRUSH)GetStockObject(WHITE_BRUSH));
cxy = UITOOLS_MakeSquareRect(r, &myr);
switch(uFlags & 0x1f)
{