mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +00:00
Patch by Evgeniy Boltik:
Always calculate a palette for the DIB in NtGdiGetDIBitsInternal, when dealing with 15 or 16 bit depth. Fixes broken taskbar icons on 16bpp. svn path=/trunk/; revision=40276
This commit is contained in:
parent
060ac4d373
commit
77b12d6d18
|
@ -659,8 +659,10 @@ NtGdiGetDIBitsInternal(HDC hDC,
|
|||
ColorPtr = ((PBYTE)Info + Info->bmiHeader.biSize);
|
||||
rgbQuads = (RGBQUAD *)ColorPtr;
|
||||
|
||||
/* Copy palette information */
|
||||
if (Info->bmiHeader.biBitCount == BitsPerFormat(psurf->SurfObj.iBitmapFormat))
|
||||
/* Copy palette information
|
||||
* Always create a palette for 15 & 16 bit. */
|
||||
if (Info->bmiHeader.biBitCount == BitsPerFormat(psurf->SurfObj.iBitmapFormat) &&
|
||||
Info->bmiHeader.biBitCount != 15 && Info->bmiHeader.biBitCount != 16)
|
||||
{
|
||||
hDestPalette = hSourcePalette;
|
||||
bPaletteMatch = TRUE;
|
||||
|
|
Loading…
Reference in a new issue