split wxRegion(wxBitmap) ctor into two ctors with clearer semantics
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -150,10 +150,7 @@ void wxTaskBarIconArea::SetTrayIcon(const wxBitmap& bmp)
|
||||
}
|
||||
|
||||
wxRegion region;
|
||||
if (m_bmp.GetMask())
|
||||
region.Union(m_bmp);
|
||||
else
|
||||
region.Union(0,0, iconsize.x, iconsize.y);
|
||||
region.Union(m_bmp);
|
||||
|
||||
// if the bitmap is smaller than the window, offset it:
|
||||
if (winsize != iconsize)
|
||||
|
Reference in New Issue
Block a user