From: Chris Elliott Date: Tue, 10 Oct 2006 11:09:44 +0000 (+0000) Subject: fix for Borland - which never likes ? X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/87d2b3f172cf3cd59ad59d27b0f443fd42394658 fix for Borland - which never likes ? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/animateg.cpp b/src/generic/animateg.cpp index 3a84197ddd..062855d926 100644 --- a/src/generic/animateg.cpp +++ b/src/generic/animateg.cpp @@ -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(); }