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:
VZ
2018-10-30 09:31:15 +01:00
committed by Stefan Csomor
parent 53f527726e
commit d118ca6c56
2 changed files with 0 additions and 19 deletions

View File

@@ -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 );