[USER32][NTUSER] Fill by white in DrawFrameControl:DFC_MENU (#4779)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 15 Oct 2022 12:00:13 +0000 (21:00 +0900)
committerGitHub <noreply@github.com>
Sat, 15 Oct 2022 12:00:13 +0000 (21:00 +0900)
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

win32ss/user/ntuser/draw.c
win32ss/user/user32/windows/draw.c

index dd4a0ff..77be737 100644 (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)
     {
index ff0fb72..1789be8 100644 (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)
     {