mirror of
https://github.com/reactos/reactos.git
synced 2024-11-28 05:53:31 +08:00
[WIN32SS][NTUSER][USER32] Fix menu checkmarks (#2009)
CORE-16470 The checkmarks of menu were black boxes. This PR will fix drawing. - Don't change background mode.
This commit is contained in:
parent
009dafe391
commit
b3033b81a4
@ -955,7 +955,7 @@ BOOL FASTCALL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
||||
HFONT hFont, hOldFont;
|
||||
WCHAR Symbol;
|
||||
RECT myr;
|
||||
INT cxy, nBkMode;
|
||||
INT cxy;
|
||||
cxy = UITOOLS_MakeSquareRect(r, &myr);
|
||||
switch(uFlags & 0xff)
|
||||
{
|
||||
@ -1014,9 +1014,7 @@ BOOL FASTCALL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
||||
IntGdiSetTextColor(dc, IntGetSysColor((uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT));
|
||||
}
|
||||
/* draw selected symbol */
|
||||
nBkMode = IntGdiSetBkMode(dc, TRANSPARENT);
|
||||
GreTextOutW(dc, myr.left, myr.top, &Symbol, 1);
|
||||
IntGdiSetBkMode(dc, nBkMode);
|
||||
/* restore previous settings */
|
||||
NtGdiSelectFont(dc, hOldFont);
|
||||
GreDeleteObject(hFont);
|
||||
|
@ -977,7 +977,7 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
||||
HFONT hFont, hOldFont;
|
||||
TCHAR Symbol;
|
||||
RECT myr;
|
||||
INT cxy, nBkMode;
|
||||
INT cxy;
|
||||
cxy = UITOOLS_MakeSquareRect(r, &myr);
|
||||
switch(uFlags & 0xff)
|
||||
{
|
||||
@ -1034,9 +1034,7 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
||||
SetTextColor(dc, GetSysColor((uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT));
|
||||
}
|
||||
/* draw selected symbol */
|
||||
nBkMode = SetBkMode(dc, TRANSPARENT);
|
||||
TextOut(dc, myr.left, myr.top, &Symbol, 1);
|
||||
SetBkMode(dc, nBkMode);
|
||||
/* restore previous settings */
|
||||
SelectObject(dc, hOldFont);
|
||||
DeleteObject(hFont);
|
||||
|
Loading…
Reference in New Issue
Block a user