X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..c7fe80e2854eaac9057ec5ceba7b96795fda5d93:/src/mac/carbon/palette.cpp diff --git a/src/mac/carbon/palette.cpp b/src/mac/carbon/palette.cpp index 60a0de6a8a..33cd9b972d 100644 --- a/src/mac/carbon/palette.cpp +++ b/src/mac/carbon/palette.cpp @@ -9,19 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "palette.h" -#endif - -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_PALETTE #include "wx/palette.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject) -#endif /* * Palette @@ -83,7 +77,7 @@ int wxPalette::GetPixel(const unsigned char red, const unsigned char green, cons for ( int i = 0 ; i < M_PALETTEDATA->m_count ; ++i ) { - const wxColour& col = &M_PALETTEDATA->m_palette[i] ; + const wxColour& col = M_PALETTEDATA->m_palette[i] ; currentdiff = abs ( col.Red() - red ) + abs( col.Green() - green ) + abs ( col.Blue() - blue ) ; if ( currentdiff < bestdiff ) { @@ -105,7 +99,7 @@ bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsi if (index < 0 || index >= M_PALETTEDATA->m_count) return FALSE; - const wxColour& col = &M_PALETTEDATA->m_palette[index] ; + const wxColour& col = M_PALETTEDATA->m_palette[index] ; *red = col.Red() ; *green = col.Green() ; *blue = col.Blue() ;