Check __WXOSX_COCOA__ instead of wxOSX_USE_COCOA

wxOSX_USE_COCOA is available only in wxOSX files.
This commit is contained in:
Artur Wieczorek 2019-12-06 21:09:36 +01:00
parent 1d45886c8f
commit 9fbf97ae97

View File

@ -911,7 +911,7 @@ wxCairoPenData::wxCairoPenData( wxGraphicsRenderer* renderer, const wxGraphicsPe
// handled in a special way. // handled in a special way.
if ( !info.GetColour().IsSolid() ) if ( !info.GetColour().IsSolid() )
{ {
#if wxOSX_USE_COCOA #if defined(__WXOSX_COCOA__)
// Under wxOSX, non-solid NSColors are actually represented // Under wxOSX, non-solid NSColors are actually represented
// by pattern images and therefore a wxPen with non-solid // by pattern images and therefore a wxPen with non-solid
// colour and wxPENSTYLE_SOLID style can be converted // colour and wxPENSTYLE_SOLID style can be converted
@ -1053,7 +1053,7 @@ wxCairoBrushData::wxCairoBrushData( wxGraphicsRenderer* renderer,
// handled in a special way. // handled in a special way.
if ( !brush.GetColour().IsSolid() ) if ( !brush.GetColour().IsSolid() )
{ {
#if wxOSX_USE_COCOA #if defined(__WXOSX_COCOA__)
// Under wxOSX, non-solid NSColors are actually represented // Under wxOSX, non-solid NSColors are actually represented
// by pattern images and therefore a wxBrush with non-solid // by pattern images and therefore a wxBrush with non-solid
// colour and wxBRUSHSTYLE_SOLID style can be converted // colour and wxBRUSHSTYLE_SOLID style can be converted