// copy ctors and assignment operators
wxColour( const wxColour& col );
- wxColour( const wxColour* col );
wxColour& operator = ( const wxColour& col );
// dtor
memcpy( &m_pixel , &col.m_pixel , 6 ) ;
}
-wxColour::wxColour (const wxColour* col)
-{
- m_red = col->m_red;
- m_green = col->m_green;
- m_blue = col->m_blue;
- m_isInit = col->m_isInit;
-
- memcpy( &m_pixel , &col->m_pixel , 6 ) ;
-}
-
wxColour& wxColour::operator =(const wxColour& col)
{
m_red = col.m_red;
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() ;
if ( MacIsReallyHilited() )
{
- wxPen white( wxWHITE , 1 , wxSOLID ) ;
+ wxPen white( *wxWHITE , 1 , wxSOLID ) ;
if (major >= 10 )
{
//Finder statusbar border color: (Project builder similar is 9B9B9B)
}
else
{
- wxPen black( wxBLACK , 1 , wxSOLID ) ;
+ wxPen black( *wxBLACK , 1 , wxSOLID ) ;
dc.SetPen(black);
}
dc.DrawLine(0, 0 ,