- wxPalette *pal = bmp.GetPalette();
- if ( pal && ::GetDeviceCaps(cdc,BITSPIXEL) <= 8 )
- {
- oldPal = ::SelectPalette( hdcMem, GetHpalette(pal), FALSE);
- ::RealizePalette(hdcMem);
- }
+ wxPalette *pal = bmp.GetPalette();
+ if ( pal && ::GetDeviceCaps(cdc,BITSPIXEL) <= 8 )
+ {
+ oldPal = ::SelectPalette(memdc, GetHpaletteOf(pal), FALSE);
+ ::RealizePalette(memdc);
+ }