From 259639183e736829fdc64aa967434ac023c32ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 24 Aug 2003 20:58:09 +0000 Subject: [PATCH] BuildDIBPalette fix by Filip Navara svn path=/trunk/; revision=5837 --- reactos/subsys/win32k/objects/dib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/win32k/objects/dib.c b/reactos/subsys/win32k/objects/dib.c index 2014b545157..53e95499955 100644 --- a/reactos/subsys/win32k/objects/dib.c +++ b/reactos/subsys/win32k/objects/dib.c @@ -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 * 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? } - if (bmi->bmiHeader.biClrUsed == 0 && - bmi->bmiHeader.biBitCount <= 8) + if (bmi->bmiHeader.biClrUsed == 0) { ColorCount = 1 << bmi->bmiHeader.biBitCount; }