Fix part of [ 1570325 ] wxAnimationCtrl for wxAdv library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,6 +96,18 @@ long wxANIDecoder::GetDelay(size_t frame) const
|
||||
return m_info[frame].m_delay;
|
||||
}
|
||||
|
||||
wxColour wxANIDecoder::GetTransparentColour(size_t frame) const
|
||||
{
|
||||
size_t idx = m_info[frame].m_imageIndex;
|
||||
|
||||
if (!m_images[idx].HasMask())
|
||||
return wxNullColour;
|
||||
|
||||
return wxColour(m_images[idx].GetMaskRed(),
|
||||
m_images[idx].GetMaskGreen(),
|
||||
m_images[idx].GetMaskBlue());
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// ANI reading and decoding
|
||||
|
||||
Reference in New Issue
Block a user