mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[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:
parent
b448fbdf59
commit
13868ee0e8
|
@ -959,6 +959,7 @@ BOOL FASTCALL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
||||||
WCHAR Symbol;
|
WCHAR Symbol;
|
||||||
RECT myr;
|
RECT myr;
|
||||||
INT cxy;
|
INT cxy;
|
||||||
|
FillRect(dc, r, (HBRUSH)NtGdiGetStockObject(WHITE_BRUSH));
|
||||||
cxy = UITOOLS_MakeSquareRect(r, &myr);
|
cxy = UITOOLS_MakeSquareRect(r, &myr);
|
||||||
switch(uFlags & 0x1f)
|
switch(uFlags & 0x1f)
|
||||||
{
|
{
|
||||||
|
|
|
@ -978,6 +978,7 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
||||||
TCHAR Symbol;
|
TCHAR Symbol;
|
||||||
RECT myr;
|
RECT myr;
|
||||||
INT cxy;
|
INT cxy;
|
||||||
|
FillRect(dc, r, (HBRUSH)GetStockObject(WHITE_BRUSH));
|
||||||
cxy = UITOOLS_MakeSquareRect(r, &myr);
|
cxy = UITOOLS_MakeSquareRect(r, &myr);
|
||||||
switch(uFlags & 0x1f)
|
switch(uFlags & 0x1f)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue