mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 03:37:57 +00:00
[WIN32K]
Fix regression of gdi32_winetest palette svn path=/trunk/; revision=56521
This commit is contained in:
parent
2b1b0f0fa5
commit
c183b86b8a
|
@ -148,9 +148,12 @@ CreateDIBPalette(
|
||||||
/* Loop all color indices in the DIB */
|
/* Loop all color indices in the DIB */
|
||||||
for (i = 0; i < cColors; i++)
|
for (i = 0; i < cColors; i++)
|
||||||
{
|
{
|
||||||
/* Get the RGB value from the DC palette, indexed by the DIB
|
/* Get the palette index and handle wraparound when exceeding
|
||||||
color table value */
|
the number of colors in the DC palette */
|
||||||
crColor = PALETTE_ulGetRGBColorFromIndex(ppalDC, pwColors[i]);
|
WORD wIndex = pwColors[i] % ppalDC->NumColors;
|
||||||
|
|
||||||
|
/* USe the RGB value from the DC palette */
|
||||||
|
crColor = PALETTE_ulGetRGBColorFromIndex(ppalDC, wIndex);
|
||||||
PALETTE_vSetRGBColorForIndex(ppal, i, crColor);
|
PALETTE_vSetRGBColorForIndex(ppal, i, crColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue