mirror of
https://github.com/reactos/reactos.git
synced 2025-06-07 10:20:26 +00:00
Fixes to build win32k.sys again.
svn path=/trunk/; revision=1949
This commit is contained in:
parent
77fa055814
commit
a68d65df79
1 changed files with 6 additions and 6 deletions
|
@ -28,12 +28,12 @@ UINT STDCALL W32kSetDIBColorTable(HDC hDC,
|
||||||
// Transfer color info
|
// Transfer color info
|
||||||
|
|
||||||
if (dc->w.bitsPerPixel <= 8) {
|
if (dc->w.bitsPerPixel <= 8) {
|
||||||
palEntry = palette->logpalette.palPalEntry + StartIndex;
|
palEntry = palette->logpalette->palPalEntry + StartIndex;
|
||||||
if (StartIndex + Entries > (1 << dc->w.bitsPerPixel))
|
if (StartIndex + Entries > (1 << dc->w.bitsPerPixel))
|
||||||
Entries = (1 << dc->w.bitsPerPixel) - StartIndex;
|
Entries = (1 << dc->w.bitsPerPixel) - StartIndex;
|
||||||
|
|
||||||
if (StartIndex + Entries > palette->logpalette.palNumEntries)
|
if (StartIndex + Entries > palette->logpalette->palNumEntries)
|
||||||
Entries = palette->logpalette.palNumEntries - StartIndex;
|
Entries = palette->logpalette->palNumEntries - StartIndex;
|
||||||
|
|
||||||
for (end = Colors + Entries; Colors < end; palEntry++, Colors++)
|
for (end = Colors + Entries; Colors < end; palEntry++, Colors++)
|
||||||
{
|
{
|
||||||
|
@ -670,9 +670,9 @@ RGBQUAD *DIB_MapPaletteColors(PDC dc, LPBITMAPINFO lpbmi)
|
||||||
lpIndex = (DWORD *)&lpbmi->bmiColors[0];
|
lpIndex = (DWORD *)&lpbmi->bmiColors[0];
|
||||||
|
|
||||||
for (i=0; i<nNumColors; i++) {
|
for (i=0; i<nNumColors; i++) {
|
||||||
lpRGB[i].rgbRed = palObj->logpalette.palPalEntry[*lpIndex].peRed;
|
lpRGB[i].rgbRed = palObj->logpalette->palPalEntry[*lpIndex].peRed;
|
||||||
lpRGB[i].rgbGreen = palObj->logpalette.palPalEntry[*lpIndex].peGreen;
|
lpRGB[i].rgbGreen = palObj->logpalette->palPalEntry[*lpIndex].peGreen;
|
||||||
lpRGB[i].rgbBlue = palObj->logpalette.palPalEntry[*lpIndex].peBlue;
|
lpRGB[i].rgbBlue = palObj->logpalette->palPalEntry[*lpIndex].peBlue;
|
||||||
lpIndex++;
|
lpIndex++;
|
||||||
}
|
}
|
||||||
// RELEASEDCINFO(hDC);
|
// RELEASEDCINFO(hDC);
|
||||||
|
|
Loading…
Reference in a new issue