]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use non-const wxDC::GetBackground() which doesn't exist any more
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 May 2004 21:45:36 +0000 (21:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 May 2004 21:45:36 +0000 (21:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/imaglist.cpp

index c31e18afbe378c1f03f12f0190a8de58e536bda4..e0a5d3a76eed9a499b1694c5e69e87c1766682d2 100644 (file)
@@ -264,10 +264,10 @@ bool wxImageList::Draw(int index,
     COLORREF clr = CLR_NONE;    // transparent by default
     if ( solidBackground )
     {
-        wxBrush *brush = & dc.GetBackground();
-        if ( brush && brush->Ok() )
+        const wxBrush& brush = dc.GetBackground();
+        if ( brush.Ok() )
         {
-            clr = wxColourToRGB(brush->GetColour());
+            clr = wxColourToRGB(brush.GetColour());
         }
     }