fix for palette restoration in wxToolBarSimple
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -557,7 +557,8 @@ void wxToolBarSimple::DrawTool(wxDC& dc, wxToolBarToolBase *toolBase)
|
|||||||
|
|
||||||
#if wxUSE_PALETTE
|
#if wxUSE_PALETTE
|
||||||
#ifndef __WXGTK__
|
#ifndef __WXGTK__
|
||||||
memDC.SetPalette(wxNullPalette);
|
if (bitmap.GetPalette())
|
||||||
|
memDC.SetPalette(wxNullPalette);
|
||||||
#endif
|
#endif
|
||||||
#endif // wxUSE_PALETTE
|
#endif // wxUSE_PALETTE
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user