diff --git a/win32ss/gdi/ntgdi/palette.c b/win32ss/gdi/ntgdi/palette.c index ef4509153e6..beb36485e75 100644 --- a/win32ss/gdi/ntgdi/palette.c +++ b/win32ss/gdi/ntgdi/palette.c @@ -727,7 +727,7 @@ UINT FASTCALL IntGdiRealizePalette(HDC hDC) { - UINT i, realize = 0; + UINT realize = 0; PDC pdc; PALETTE *ppalSurf, *ppalDC; @@ -766,13 +766,6 @@ IntGdiRealizePalette(HDC hDC) ASSERT(ppalDC->flFlags & PAL_INDEXED); - // FIXME: Should we resize ppalSurf if it's too small? - realize = (ppalDC->NumColors < ppalSurf->NumColors) ? ppalDC->NumColors : ppalSurf->NumColors; - - for (i=0; iIndexedColors[i], *(LONG*)&ppalDC->IndexedColors[i]); - } cleanup: DC_UnlockDc(pdc);