Add conversion ctor from wxIcon to wxBitmapBundle too
Existing code may call functions taking wxBitmap with wxIcon, due to an existing conversion from wxIcon to wxBitmap, so we need to provide a similar conversion to wxBitmapBundle for compatibility.
This commit is contained in:
parent
d4bc1daf19
commit
630e6b898f
3 changed files with 17 additions and 0 deletions
|
|
@ -41,6 +41,9 @@ public:
|
|||
// using wxBitmap.
|
||||
wxBitmapBundle(const wxBitmap& bitmap);
|
||||
|
||||
// This is similar to above and also exists only for compatibility.
|
||||
wxBitmapBundle(const wxIcon& icon);
|
||||
|
||||
// Another conversion ctor from a single image: this one is needed to allow
|
||||
// passing wxImage to the functions that used to take wxBitmap but now take
|
||||
// wxBitmapBundle.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue