wxBitmap with cleared alpha channel doesn't keep its alpha flag any more.
Explicitly reset wxBitmap alpha flag after clearing its alpha channel to ensure that we don't treat it as having alpha after going to all the trouble of ensuring that it doesn't/ See #14403. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1203,10 +1203,10 @@ wxDC *wxBitmap::GetSelectedInto() const
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxBitmap::UseAlpha()
|
||||
void wxBitmap::UseAlpha(bool use)
|
||||
{
|
||||
if ( GetBitmapData() )
|
||||
GetBitmapData()->m_hasAlpha = true;
|
||||
GetBitmapData()->m_hasAlpha = use;
|
||||
}
|
||||
|
||||
bool wxBitmap::HasAlpha() const
|
||||
|
Reference in New Issue
Block a user