]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for Borland - which never likes ?
authorChris Elliott <biol75@york.ac.uk>
Tue, 10 Oct 2006 11:09:44 +0000 (11:09 +0000)
committerChris Elliott <biol75@york.ac.uk>
Tue, 10 Oct 2006 11:09:44 +0000 (11:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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();
 }