Seems linux impl is different....

This commit is contained in:
Jeff Young 2023-07-17 22:05:04 +01:00
parent 19073b3e61
commit 64fea38e61
2 changed files with 4 additions and 2 deletions

View File

@ -168,9 +168,9 @@ void LAYER_BOX_SELECTOR::onKeyDown( wxKeyEvent& aEvent )
}
#ifdef __WXMAC__
void LAYER_BOX_SELECTOR::OnDrawBackground( wxDC& dc, const wxRect& rect, int item, int flags) const
{
#ifndef __WXMSW__
if( ( flags & wxODCB_PAINTING_CONTROL ) && !IsEnabled() )
{
wxColour fgCol = wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT );
@ -188,7 +188,7 @@ void LAYER_BOX_SELECTOR::OnDrawBackground( wxDC& dc, const wxRect& rect, int ite
dc.SetClippingRegion( rect );
return;
}
#endif
wxBitmapComboBox::OnDrawBackground( dc, rect, item, flags );
}
#endif

View File

@ -92,7 +92,9 @@ public:
private:
void onKeyDown( wxKeyEvent& aEvent );
#ifdef __WXMAC__
void OnDrawBackground( wxDC& dc, const wxRect& rect, int item, int flags) const override;
#endif
};
#endif // LAYER_BOX_SELECTOR_H