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:
Václav Slavík
2004-06-03 21:13:52 +00:00
parent 4772f8e198
commit 85f6b408df
13 changed files with 176 additions and 107 deletions

View File

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