Remove wxImageList::Add() overload taking wxIcon from wxOSX (#997)
This is not necessary as wxIcon is implicitly convertible to wxBitmap anyhow, so calling Add(icon) works using the existing Add(wxBitmap) overload, and is actually harmful because of the wrong icon size check in this function, which used physical bitmap size instead of the logical (scaled) size. Closes #18188.
This commit is contained in:
@@ -32,7 +32,6 @@ public:
|
||||
virtual bool GetSize( int index, int &width, int &height ) const;
|
||||
virtual wxSize GetSize() const { return wxSize(m_width, m_height); }
|
||||
|
||||
int Add( const wxIcon& bitmap );
|
||||
int Add( const wxBitmap& bitmap );
|
||||
int Add( const wxBitmap& bitmap, const wxBitmap& mask );
|
||||
int Add( const wxBitmap& bitmap, const wxColour& maskColour );
|
||||
|
Reference in New Issue
Block a user