mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:03:00 +00:00
BuildDIBPalette fix by Filip Navara
svn path=/trunk/; revision=5837
This commit is contained in:
parent
d7e545ac33
commit
259639183e
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Id: dib.c,v 1.28 2003/08/20 07:45:02 gvg Exp $
|
* $Id: dib.c,v 1.29 2003/08/24 20:58:09 gvg Exp $
|
||||||
*
|
*
|
||||||
* ReactOS W32 Subsystem
|
* ReactOS W32 Subsystem
|
||||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
||||||
|
@ -943,8 +943,7 @@ BuildDIBPalette (PBITMAPINFO bmi, PINT paletteType)
|
||||||
*paletteType = PAL_RGB; // Would it be BGR, considering the BGR nature of the DIB color table?
|
*paletteType = PAL_RGB; // Would it be BGR, considering the BGR nature of the DIB color table?
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bmi->bmiHeader.biClrUsed == 0 &&
|
if (bmi->bmiHeader.biClrUsed == 0)
|
||||||
bmi->bmiHeader.biBitCount <= 8)
|
|
||||||
{
|
{
|
||||||
ColorCount = 1 << bmi->bmiHeader.biBitCount;
|
ColorCount = 1 << bmi->bmiHeader.biBitCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue