]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/animateg.cpp
!__WX_DC_BLIT_FIXED__ case
[wxWidgets.git] / src / generic / animateg.cpp
index 3a84197ddd8359935612f495a5e6a4a5ade527cd..062855d92687b61085f458e093faaeef9cff053d 100644 (file)
@@ -498,10 +498,11 @@ void wxAnimationCtrl::DrawCurrentFrame(wxDC& dc)
 }
 
 void wxAnimationCtrl::DisposeToBackground(wxDC& dc)
-{
-    wxBrush brush(IsUsingWindowBackgroundColour()
+{ 
+    wxColour col = IsUsingWindowBackgroundColour()
                     ? GetBackgroundColour()
-                    : m_animation.GetBackgroundColour());
+                    : m_animation.GetBackgroundColour() ;
+    wxBrush brush(col);
     dc.SetBackground(brush);
     dc.Clear();
 }