mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
[WIN32K]
- When initializing the EXLATEOBJ to translate the solid brush color in EBRUSHOBJ_vSetSolidBrushColor, also pass the EBRUSHOBJs back color. This fixes wrong colors when the destination surface is mono (e.g. disabled buttons) svn path=/branches/reactos-yarotows/; revision=47269
This commit is contained in:
parent
63b50165b2
commit
ff39f59027
|
@ -82,7 +82,12 @@ EBRUSHOBJ_vSetSolidBrushColor(EBRUSHOBJ *pebo, COLORREF crColor)
|
|||
pebo->ulRGBColor = crColor;
|
||||
|
||||
/* Initialize an XLATEOBJ RGB -> surface */
|
||||
EXLATEOBJ_vInitialize(&exlo, &gpalRGB, pebo->ppalSurf, 0, 0, 0);
|
||||
EXLATEOBJ_vInitialize(&exlo,
|
||||
&gpalRGB,
|
||||
pebo->ppalSurf,
|
||||
pebo->crCurrentBack,
|
||||
0,
|
||||
0);
|
||||
|
||||
/* Translate the brush color to the target format */
|
||||
iSolidColor = XLATEOBJ_iXlate(&exlo.xlo, crColor);
|
||||
|
|
Loading…
Reference in a new issue