don't suppose that all 32bpp DIBs have alpha, this is not true, the extra byte may be just padding
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -194,6 +194,11 @@ private:
|
||||
// the case
|
||||
bool m_ownsHandle;
|
||||
|
||||
// if true, we have alpha, if false we don't (note that we can still have
|
||||
// m_depth == 32 but the last component is then simply padding and not
|
||||
// alpha)
|
||||
bool m_hasAlpha;
|
||||
|
||||
|
||||
// DIBs can't be copied
|
||||
wxDIB(const wxDIB&);
|
||||
@@ -209,6 +214,7 @@ void wxDIB::Init()
|
||||
{
|
||||
m_handle = 0;
|
||||
m_ownsHandle = true;
|
||||
m_hasAlpha = false;
|
||||
|
||||
m_data = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user