Fix adding wxBitmap with mask to generic wxImageList

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 list to preserve bitmap transparency.
This commit is contained in:
Artur Wieczorek
2021-01-12 17:52:44 +01:00
parent f3800cee1f
commit dfb09d2ae9
2 changed files with 27 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ private:
const wxBitmap *DoGetPtr(int index) const;
wxVector<wxBitmap> m_images;
bool m_useMask;
// Size of a single bitmap in the list.
wxSize m_size;