diff --git a/common/dialogs/dialog_color_picker.cpp b/common/dialogs/dialog_color_picker.cpp index 40cdd918cb..b17ea93ed4 100644 --- a/common/dialogs/dialog_color_picker.cpp +++ b/common/dialogs/dialog_color_picker.cpp @@ -396,7 +396,7 @@ void DIALOG_COLOR_PICKER::drawRGBPalette() // Use Y axis from bottom to top and origin to center bitmapDC.SetAxisOrientation( true, true ); -#if wxCHECK_VERSION( 3, 1, 7 ) && !defined( __WXMAC__) +#if wxCHECK_VERSION( 3, 1, 7 ) && defined( __WXMSW__) // For some reason, SetDeviceOrigin has changed in wxWidgets 3.1.6 or 3.1.7 bitmapDC.SetDeviceOrigin( half_size, -half_size ); #else @@ -466,7 +466,7 @@ void DIALOG_COLOR_PICKER::drawHSVPalette() // Use Y axis from bottom to top and origin to center bitmapDC.SetAxisOrientation( true, true ); -#if wxCHECK_VERSION( 3, 1, 7 ) && !defined( __WXMAC__) +#if wxCHECK_VERSION( 3, 1, 7 ) && defined( __WXMSW__) // For some reason, SetDeviceOrigin has changed in wxWidgets 3.1.6 or 3.1.7 bitmapDC.SetDeviceOrigin( half_size, -half_size ); #else