mirror of
https://github.com/reactos/wine.git
synced 2025-02-14 17:49:51 +00:00
Fixed retrieval of invalid palette data in GetDIBits().
This commit is contained in:
parent
04e57f97fc
commit
c011267b97
@ -461,12 +461,13 @@ INT32 WINAPI GetDIBits32(
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Transfer color info */
|
||||
/* Transfer color info (FIXME) */
|
||||
|
||||
if (info->bmiHeader.biBitCount<=8) {
|
||||
int colors = info->bmiHeader.biClrUsed;
|
||||
if (!colors && (info->bmiHeader.biBitCount <= 8))
|
||||
colors = 1 << info->bmiHeader.biBitCount;
|
||||
if (info && (info->bmiHeader.biBitCount <= 8) &&
|
||||
(bmp->bitmap.bmBitsPixel <= 8))
|
||||
{
|
||||
int colors = 1 << info->bmiHeader.biBitCount;
|
||||
info->bmiHeader.biClrUsed = 0;
|
||||
palEntry = palette->logpalette.palPalEntry;
|
||||
for (i = 0; i < colors; i++, palEntry++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user