mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:52:58 +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
1 changed files with 4 additions and 2 deletions
|
@ -659,8 +659,10 @@ NtGdiGetDIBitsInternal(HDC hDC,
|
||||||
ColorPtr = ((PBYTE)Info + Info->bmiHeader.biSize);
|
ColorPtr = ((PBYTE)Info + Info->bmiHeader.biSize);
|
||||||
rgbQuads = (RGBQUAD *)ColorPtr;
|
rgbQuads = (RGBQUAD *)ColorPtr;
|
||||||
|
|
||||||
/* Copy palette information */
|
/* Copy palette information
|
||||||
if (Info->bmiHeader.biBitCount == BitsPerFormat(psurf->SurfObj.iBitmapFormat))
|
* 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;
|
hDestPalette = hSourcePalette;
|
||||||
bPaletteMatch = TRUE;
|
bPaletteMatch = TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue