X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d18868bb9b22d6f0fd1010779ddab14a6ab398d8..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/common/anidecod.cpp diff --git a/src/common/anidecod.cpp b/src/common/anidecod.cpp index 7f90c8fdeb..7d502ae52a 100644 --- a/src/common/anidecod.cpp +++ b/src/common/anidecod.cpp @@ -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