git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12668
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxPalette *pal = bmp.GetPalette();
if ( pal && ::GetDeviceCaps(cdc,BITSPIXEL) <= 8 )
{
wxPalette *pal = bmp.GetPalette();
if ( pal && ::GetDeviceCaps(cdc,BITSPIXEL) <= 8 )
{
- oldPal = ::SelectPalette( hdcMem, GetHpalette(pal), FALSE);
+ oldPal = ::SelectPalette(hdcMem, GetHpaletteOf(pal), FALSE);
::RealizePalette(hdcMem);
}
#endif // wxUSE_PALETTE
::RealizePalette(hdcMem);
}
#endif // wxUSE_PALETTE
wxPalette *pal = bmp.GetPalette();
if ( pal && ::GetDeviceCaps(cdc,BITSPIXEL) <= 8 )
{
wxPalette *pal = bmp.GetPalette();
if ( pal && ::GetDeviceCaps(cdc,BITSPIXEL) <= 8 )
{
- oldPal = ::SelectPalette( hdcMem, GetHpalette(pal), FALSE);
- ::RealizePalette(hdcMem);
+ oldPal = ::SelectPalette(memdc, GetHpaletteOf(pal), FALSE);
+ ::RealizePalette(memdc);
}
#endif // wxUSE_PALETTE
}
#endif // wxUSE_PALETTE