// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#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
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 )
{
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() ;