don't use non-const wxDC::GetBackground() which doesn't exist any more

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-05-05 21:45:36 +00:00
parent 2439f37a89
commit b33576e164

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