Fix completely broken code in the parent commit
This was accidentally committed without being tested, correct it now. See #22138.
This commit is contained in:
@@ -137,8 +137,11 @@ void wxTaskBarIconArea::SetTrayIcon(const wxBitmapBundle& bmp)
|
||||
m_bmp = bmp;
|
||||
|
||||
// determine suitable bitmap size:
|
||||
wxSize iconsize = m_bmp.GetDefaultSize().DecTo(GetClientSize());
|
||||
m_bmpReal = m_bmp.GetBitmapFor(iconsize);
|
||||
const wxSize winsize = GetClientSize();
|
||||
wxSize iconsize(m_bmp.GetDefaultSize());
|
||||
iconsize.DecTo(winsize);
|
||||
|
||||
m_bmpReal = m_bmp.GetBitmap(iconsize);
|
||||
|
||||
wxRegion region;
|
||||
region.Union(m_bmpReal);
|
||||
|
||||
Reference in New Issue
Block a user