diff --git a/win32ss/gdi/ntgdi/palette.c b/win32ss/gdi/ntgdi/palette.c index ec92c28721..3a877be63c 100644 --- a/win32ss/gdi/ntgdi/palette.c +++ b/win32ss/gdi/ntgdi/palette.c @@ -730,7 +730,7 @@ UINT FASTCALL IntGdiRealizePalette(HDC hDC) { - UINT i, realize = 0; + UINT /*i,*/ realize = 0; // Removed i for CORE-13748 revert. PDC pdc; PALETTE *ppalSurf, *ppalDC; @@ -769,6 +769,8 @@ IntGdiRealizePalette(HDC hDC) ASSERT(ppalDC->flFlags & PAL_INDEXED); +/* These next lines are removed because of failures shown in CORE-13748 */ +#if 0 // FIXME: Should we resize ppalSurf if it's too small? realize = (ppalDC->NumColors < ppalSurf->NumColors) ? ppalDC->NumColors : ppalSurf->NumColors; @@ -776,6 +778,16 @@ IntGdiRealizePalette(HDC hDC) { InterlockedExchange((LONG*)&ppalSurf->IndexedColors[i], *(LONG*)&ppalDC->IndexedColors[i]); } +#endif + /* These next lines provide messages showing functions needing implementation */ + if(pdc->dctype == DC_TYPE_MEMORY) + { + DPRINT1("RealizePalette unimplemented for memory managed DCs\n"); + } + else + { + DPRINT1("RealizePalette unimplemented for device DCs\n"); + } cleanup: DC_UnlockDc(pdc);