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:
Vadim Zeitlin
2004-07-20 23:45:28 +00:00
parent c1296b82d4
commit 45515b6685
2 changed files with 21 additions and 7 deletions

View File

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