This will fix regression CORE-16470
"Black squares in menubar of Abiword 2.6.8"
This is a partial revert of the guilty rev 0.4.13-dev-702-g
1e91a1690d554c771d703f12416321bbe4c5b53f
- Don't change background mode.
And is an addendum to CORE-13211.
test results LGTM:
https://reactos.org/testman/compare.php?ids=69593,69596 VBox
https://reactos.org/testman/compare.php?ids=69594,69597 KVM
fix cherry picked from commit 0.4.14-dev-186-g
b3033b81a4256cd3482b36acbd60870ef1ddb23d
HFONT hFont, hOldFont;
WCHAR Symbol;
RECT myr;
- INT cxy, nBkMode;
+ INT cxy;
cxy = UITOOLS_MakeSquareRect(r, &myr);
switch(uFlags & 0xff)
{
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);
HFONT hFont, hOldFont;
TCHAR Symbol;
RECT myr;
- INT cxy, nBkMode;
+ INT cxy;
cxy = UITOOLS_MakeSquareRect(r, &myr);
switch(uFlags & 0xff)
{
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);