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:
@@ -264,10 +264,10 @@ bool wxImageList::Draw(int index,
|
|||||||
COLORREF clr = CLR_NONE; // transparent by default
|
COLORREF clr = CLR_NONE; // transparent by default
|
||||||
if ( solidBackground )
|
if ( solidBackground )
|
||||||
{
|
{
|
||||||
wxBrush *brush = & dc.GetBackground();
|
const wxBrush& brush = dc.GetBackground();
|
||||||
if ( brush && brush->Ok() )
|
if ( brush.Ok() )
|
||||||
{
|
{
|
||||||
clr = wxColourToRGB(brush->GetColour());
|
clr = wxColourToRGB(brush.GetColour());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user