Fix uses of wxPalette without check for wxUSE_PALETTE

This commit is contained in:
Jeff Bland
2018-05-18 06:52:52 -06:00
parent 26715a1fe0
commit 8b18bbb9c7
4 changed files with 10 additions and 0 deletions

View File

@@ -457,10 +457,12 @@ void* wxGCDCImpl::GetHandle() const
return cgctx;
}
#if wxUSE_PALETTE
void wxGCDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
{
}
#endif
void wxGCDCImpl::SetBackgroundMode( int mode )
{

View File

@@ -1863,10 +1863,12 @@ void wxWindowDCImpl::SetBackgroundMode( int mode )
m_backgroundMode = mode;
}
#if wxUSE_PALETTE
void wxWindowDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
{
wxFAIL_MSG( wxT("wxWindowDCImpl::SetPalette not implemented") );
}
#endif
void wxWindowDCImpl::UpdateClipBox()
{