Fix adding wxBitmap with mask to wxImageList not supporting masks (wxMSW)

If wxBitmap with mask is added to wxImageList that doesn't support masks
we need to convert a bitmap mask to alpha channel values prior to adding
bitmap to the native list to preserve bitmap transparency.

Closes #19036.
This commit is contained in:
Artur Wieczorek
2021-01-12 17:41:55 +01:00
parent fd5df49920
commit 8f08233a13
2 changed files with 106 additions and 25 deletions

View File

@@ -194,6 +194,7 @@ public:
protected:
WXHIMAGELIST m_hImageList;
wxSize m_size;
bool m_useMask;
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxImageList);
};