adapt XBM usage in wxAUI to this logic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40786
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxColour& color)
{
wxImage img = wxBitmap((const char*)bits, w, h).ConvertToImage();
const wxColour& color)
{
wxImage img = wxBitmap((const char*)bits, w, h).ConvertToImage();
- img.Replace(255,255,255,123,123,123);
- img.Replace(0,0,0,color.Red(),color.Green(),color.Blue());
+ img.Replace(0,0,0,123,123,123);
+ img.Replace(255,255,255,color.Red(),color.Green(),color.Blue());
img.SetMaskColour(123,123,123);
return wxBitmap(img);
}
img.SetMaskColour(123,123,123);
return wxBitmap(img);
}
((style & wxCAPTION) || (style & wxTINY_CAPTION_HORIZ) || (style & wxTINY_CAPTION_VERT)))
{
wxImage img = wxBitmap((const char*)close_bits, 16, 16).ConvertToImage();
((style & wxCAPTION) || (style & wxTINY_CAPTION_HORIZ) || (style & wxTINY_CAPTION_VERT)))
{
wxImage img = wxBitmap((const char*)close_bits, 16, 16).ConvertToImage();
- img.Replace(255,255,255,123,123,123);
- img.Replace(0,0,0,255,255,255);
+ img.Replace(0,0,0,123,123,123);
img.SetMaskColour(123,123,123);
m_closeButton = wxBitmap( img );
}
img.SetMaskColour(123,123,123);
m_closeButton = wxBitmap( img );
}
reversed |= (unsigned char)(val & 0x01);
val >>= 1;
}
reversed |= (unsigned char)(val & 0x01);
val >>= 1;
}