From b1a744ce077dc9d309b9e4dd8ca5458ae9207d37 Mon Sep 17 00:00:00 2001 From: Ilya Sinitsyn Date: Tue, 9 Jun 2020 05:54:09 +0700 Subject: [PATCH] Fix an issue with the background in wxGenericAnimationCtrl Static bitmap with alpha channel must also be drawn on the memory DC instead of being used directly, just as the bitmaps with a mask. --- src/generic/animateg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/generic/animateg.cpp b/src/generic/animateg.cpp index bfd826eb04..578827b52b 100644 --- a/src/generic/animateg.cpp +++ b/src/generic/animateg.cpp @@ -454,8 +454,9 @@ void wxGenericAnimationCtrl::DisplayStaticImage() if (m_bmpStaticReal.IsOk()) { // copy the inactive bitmap in the backing store - // eventually using the mask if the static bitmap has one - if ( m_bmpStaticReal.GetMask() ) + // eventually using the mask or the alpha if the static + // bitmap has one + if ( m_bmpStaticReal.GetMask() || m_bmpStaticReal.HasAlpha() ) { wxMemoryDC temp; temp.SelectObject(m_backingStore);