From a68d65df790e263cbe2be2aa566cdcc40899b3aa Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 7 Jun 2001 21:22:32 +0000 Subject: [PATCH] Fixes to build win32k.sys again. svn path=/trunk/; revision=1949 --- reactos/subsys/win32k/objects/dib.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/subsys/win32k/objects/dib.c b/reactos/subsys/win32k/objects/dib.c index e059176e3f7..0e621b2e732 100644 --- a/reactos/subsys/win32k/objects/dib.c +++ b/reactos/subsys/win32k/objects/dib.c @@ -28,12 +28,12 @@ UINT STDCALL W32kSetDIBColorTable(HDC hDC, // Transfer color info if (dc->w.bitsPerPixel <= 8) { - palEntry = palette->logpalette.palPalEntry + StartIndex; + palEntry = palette->logpalette->palPalEntry + StartIndex; if (StartIndex + Entries > (1 << dc->w.bitsPerPixel)) Entries = (1 << dc->w.bitsPerPixel) - StartIndex; - if (StartIndex + Entries > palette->logpalette.palNumEntries) - Entries = palette->logpalette.palNumEntries - StartIndex; + if (StartIndex + Entries > palette->logpalette->palNumEntries) + Entries = palette->logpalette->palNumEntries - StartIndex; for (end = Colors + Entries; Colors < end; palEntry++, Colors++) { @@ -670,9 +670,9 @@ RGBQUAD *DIB_MapPaletteColors(PDC dc, LPBITMAPINFO lpbmi) lpIndex = (DWORD *)&lpbmi->bmiColors[0]; for (i=0; ilogpalette.palPalEntry[*lpIndex].peRed; - lpRGB[i].rgbGreen = palObj->logpalette.palPalEntry[*lpIndex].peGreen; - lpRGB[i].rgbBlue = palObj->logpalette.palPalEntry[*lpIndex].peBlue; + lpRGB[i].rgbRed = palObj->logpalette->palPalEntry[*lpIndex].peRed; + lpRGB[i].rgbGreen = palObj->logpalette->palPalEntry[*lpIndex].peGreen; + lpRGB[i].rgbBlue = palObj->logpalette->palPalEntry[*lpIndex].peBlue; lpIndex++; } // RELEASEDCINFO(hDC);