-
- ok = ::MaskBlt(GetHdc(), x, y, width, height,
+ if (bmp.GetPalette() && (::GetDeviceCaps(cdc,BITSPIXEL) <= 8)) {
+ oldPal = ::SelectPalette( hdcMem, (HPALETTE)bmp.GetPalette()->GetHPALETTE(), FALSE);
+ ::RealizePalette(hdcMem);
+ }
+ ok = ::MaskBlt(cdc, x, y, width, height,