X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/055de35012da711c0ebdf83e53d11f221af731fc..35c72e51238e373c07740d826842a34cf71ec51d:/src/mac/carbon/colordlg.cpp diff --git a/src/mac/carbon/colordlg.cpp b/src/mac/carbon/colordlg.cpp index 6948802acd..377276d0c4 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 @@ -50,9 +47,9 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data) int wxColourDialog::ShowModal() { - RGBColor currentColor = *((RGBColor*)m_colourData.m_dataColour.GetPixel()) ; - -#if TARGET_API_MAC_OSX + RGBColor currentColor ; + + m_colourData.m_dataColour.GetRGBColor( currentColor ); NColorPickerInfo info; OSStatus err ; memset(&info, 0, sizeof(info)) ; @@ -72,18 +69,6 @@ int wxColourDialog::ShowModal() return wxID_OK; } -#else - RGBColor newColor ; - Point where ; - - 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; }