Fix uses of wxPalette without check for wxUSE_PALETTE
This commit is contained in:
@@ -83,7 +83,10 @@ public:
|
|||||||
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE;
|
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE;
|
||||||
virtual void SetBackground(const wxBrush& brush) wxOVERRIDE;
|
virtual void SetBackground(const wxBrush& brush) wxOVERRIDE;
|
||||||
virtual void SetBackgroundMode(int mode) wxOVERRIDE;
|
virtual void SetBackgroundMode(int mode) wxOVERRIDE;
|
||||||
|
|
||||||
|
#if wxUSE_PALETTE
|
||||||
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE;
|
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE;
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void DestroyClippingRegion() wxOVERRIDE;
|
virtual void DestroyClippingRegion() wxOVERRIDE;
|
||||||
|
|
||||||
|
@@ -86,7 +86,10 @@ public:
|
|||||||
virtual void SetTextForeground( const wxColour &col ) wxOVERRIDE;
|
virtual void SetTextForeground( const wxColour &col ) wxOVERRIDE;
|
||||||
virtual void SetTextBackground( const wxColour &col ) wxOVERRIDE;
|
virtual void SetTextBackground( const wxColour &col ) wxOVERRIDE;
|
||||||
virtual void SetBackgroundMode( int mode ) wxOVERRIDE;
|
virtual void SetBackgroundMode( int mode ) wxOVERRIDE;
|
||||||
|
|
||||||
|
#if wxUSE_PALETTE
|
||||||
virtual void SetPalette( const wxPalette& palette ) wxOVERRIDE;
|
virtual void SetPalette( const wxPalette& palette ) wxOVERRIDE;
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void DestroyClippingRegion() wxOVERRIDE;
|
virtual void DestroyClippingRegion() wxOVERRIDE;
|
||||||
|
|
||||||
|
@@ -457,10 +457,12 @@ void* wxGCDCImpl::GetHandle() const
|
|||||||
return cgctx;
|
return cgctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_PALETTE
|
||||||
void wxGCDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
|
void wxGCDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void wxGCDCImpl::SetBackgroundMode( int mode )
|
void wxGCDCImpl::SetBackgroundMode( int mode )
|
||||||
{
|
{
|
||||||
|
@@ -1863,10 +1863,12 @@ void wxWindowDCImpl::SetBackgroundMode( int mode )
|
|||||||
m_backgroundMode = mode;
|
m_backgroundMode = mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_PALETTE
|
||||||
void wxWindowDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
|
void wxWindowDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
|
||||||
{
|
{
|
||||||
wxFAIL_MSG( wxT("wxWindowDCImpl::SetPalette not implemented") );
|
wxFAIL_MSG( wxT("wxWindowDCImpl::SetPalette not implemented") );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void wxWindowDCImpl::UpdateClipBox()
|
void wxWindowDCImpl::UpdateClipBox()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user