treat 0xc0c0c0 as transparent colour by default

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-09-30 12:26:42 +00:00
parent 2bcfc494aa
commit 9542f0a109

View File

@ -356,6 +356,9 @@ bool wxBMPResourceHandler::LoadFile(wxBitmap *bitmap,
bitmap->SetHeight(bm.bmHeight);
bitmap->SetDepth(bm.bmBitsPixel);
// use 0xc0c0c0 as transparent colour by default
bitmap->SetMask(new wxMask(*bitmap, *wxLIGHT_GREY));
return true;
}