]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/anidecod.cpp
avoiding nesting dcs on the same window concurrently
[wxWidgets.git] / src / common / anidecod.cpp
index 7f90c8fdeb2d6d1a8607bea8751d9ff8afb8ea19..7d502ae52a4ed898c83572ad25ed848422421725 100644 (file)
@@ -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