mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32K]
Fix a bug in calculation of the background color for 32bpp -> 1bpp color translations. Fixes bug 2372 svn path=/trunk/; revision=50605
This commit is contained in:
parent
66cff693af
commit
92d036f574
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ EXLATEOBJ_iXlateRGBto555(PEXLATEOBJ pxlo, ULONG iColor)
|
|||
iColor >>= 13;
|
||||
iNewColor |= iColor & 0x3E0;
|
||||
|
||||
/* Copy green */
|
||||
/* Copy blue */
|
||||
iColor >>= 13;
|
||||
iNewColor |= iColor & 0x1F;
|
||||
|
||||
|
@ -417,11 +417,11 @@ EXLATEOBJ_vInitialize(
|
|||
pexlo->aulXlate[0] =
|
||||
PALETTE_ulGetNearestPaletteIndex(ppalSrc, crSrcBackColor);
|
||||
}
|
||||
else if (ppalSrc->flFlags & PAL_BGR)
|
||||
else if (ppalSrc->flFlags & PAL_RGB)
|
||||
{
|
||||
pexlo->aulXlate[0] = crSrcBackColor;
|
||||
}
|
||||
else if (ppalSrc->flFlags & PAL_RGB)
|
||||
else if (ppalSrc->flFlags & PAL_BGR)
|
||||
{
|
||||
pexlo->aulXlate[0] = RGB(GetBValue(crSrcBackColor),
|
||||
GetGValue(crSrcBackColor),
|
||||
|
|
Loading…
Reference in a new issue