X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f61ed7ee42d7647663e48ac55062be0935bb07aa..a0a2b5c41c8448c478e05b7819b4c173c22c46a8:/src/mac/carbon/colordlg.cpp diff --git a/src/mac/carbon/colordlg.cpp b/src/mac/carbon/colordlg.cpp index db694ec082..bdb49c62c9 100644 --- a/src/mac/carbon/colordlg.cpp +++ b/src/mac/carbon/colordlg.cpp @@ -21,9 +21,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog) #include "wx/mac/private.h" -#ifndef __DARWIN__ -#include -#endif /* * wxColourDialog @@ -52,7 +49,6 @@ int wxColourDialog::ShowModal() { RGBColor currentColor = *((RGBColor*)m_colourData.m_dataColour.GetPixel()) ; -#if TARGET_API_MAC_OSX NColorPickerInfo info; OSStatus err ; memset(&info, 0, sizeof(info)) ; @@ -68,21 +64,10 @@ int wxColourDialog::ShowModal() currentColor.red = info.theColor.color.rgb.red ; currentColor.green = info.theColor.color.rgb.green ; currentColor.blue = info.theColor.color.rgb.blue ; - m_colourData.m_dataColour.FromRGBColor((WXCOLORREF*) ¤tColor); - return wxID_OK; - } -#else - RGBColor newColor ; - Point where ; + m_colourData.m_dataColour = currentColor; - where.h = where.v = -1; - - if (GetColor( where, "\pSelect a new palette color.", ¤tColor, &newColor )) - { - m_colourData.m_dataColour.Set( (WXCOLORREF*) &newColor ) ; return wxID_OK; } -#endif return wxID_CANCEL; }