diff --git a/reactos/win32ss/gdi/ntgdi/dibobj.c b/reactos/win32ss/gdi/ntgdi/dibobj.c index 83252a91628..2dc749ecc1c 100644 --- a/reactos/win32ss/gdi/ntgdi/dibobj.c +++ b/reactos/win32ss/gdi/ntgdi/dibobj.c @@ -32,27 +32,6 @@ static const RGBQUAD EGAColorsQuads[16] = { 0xff, 0xff, 0xff, 0x00 } }; -static const RGBTRIPLE EGAColorsTriples[16] = -{ - /* rgbBlue, rgbGreen, rgbRed */ - { 0x00, 0x00, 0x00 }, - { 0x00, 0x00, 0x80 }, - { 0x00, 0x80, 0x00 }, - { 0x00, 0x80, 0x80 }, - { 0x80, 0x00, 0x00 }, - { 0x80, 0x00, 0x80 }, - { 0x80, 0x80, 0x00 }, - { 0x80, 0x80, 0x80 }, - { 0xc0, 0xc0, 0xc0 }, - { 0x00, 0x00, 0xff }, - { 0x00, 0xff, 0x00 }, - { 0x00, 0xff, 0xff }, - { 0xff, 0x00, 0x00 }, - { 0xff, 0x00, 0xff }, - { 0xff, 0xff, 0x00 }, - { 0xff, 0xff, 0xff } -}; - static const RGBQUAD DefLogPaletteQuads[20] = /* Copy of Default Logical Palette */ { /* rgbBlue, rgbGreen, rgbRed, rgbReserved */ @@ -78,31 +57,6 @@ static const RGBQUAD DefLogPaletteQuads[20] = /* Copy of Default Logical Palet { 0xff, 0xff, 0xff, 0x00 } }; -static const RGBQUAD DefLogPaletteTriples[20] = /* Copy of Default Logical Palette */ -{ - /* rgbBlue, rgbGreen, rgbRed, rgbReserved */ - { 0x00, 0x00, 0x00 }, - { 0x00, 0x00, 0x80 }, - { 0x00, 0x80, 0x00 }, - { 0x00, 0x80, 0x80 }, - { 0x80, 0x00, 0x00 }, - { 0x80, 0x00, 0x80 }, - { 0x80, 0x80, 0x00 }, - { 0xc0, 0xc0, 0xc0 }, - { 0xc0, 0xdc, 0xc0 }, - { 0xf0, 0xca, 0xa6 }, - { 0xf0, 0xfb, 0xff }, - { 0xa4, 0xa0, 0xa0 }, - { 0x80, 0x80, 0x80 }, - { 0x00, 0x00, 0xf0 }, - { 0x00, 0xff, 0x00 }, - { 0x00, 0xff, 0xff }, - { 0xff, 0x00, 0x00 }, - { 0xff, 0x00, 0xff }, - { 0xff, 0xff, 0x00 }, - { 0xff, 0xff, 0xff } -}; - PPALETTE NTAPI CreateDIBPalette( @@ -1383,7 +1337,7 @@ IntCreateDIBitmap( DWORD col = RGB(rgb->rgbRed, rgb->rgbGreen, rgb->rgbBlue); // Check if the first color of the colormap is black - if ((col == RGB(0, 0, 0))) + if (col == RGB(0, 0, 0)) { rgb++; col = RGB(rgb->rgbRed, rgb->rgbGreen, rgb->rgbBlue);