// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWidgets licence
+// 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
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() ;