Remove wx/dcbuffer.h dependency from wx/generic/combo.h
This header doesn't really need to be included from here and it was done solely in order to get the value of wxALWAYS_NATIVE_DOUBLE_BUFFER from it. Move the code using this macro in the .cpp file instead.
This commit is contained in:
@@ -198,6 +198,20 @@ wxGenericComboCtrl::~wxGenericComboCtrl()
|
||||
{
|
||||
}
|
||||
|
||||
bool wxGenericComboCtrl::HasTransparentBackground()
|
||||
{
|
||||
#if wxALWAYS_NATIVE_DOUBLE_BUFFER
|
||||
#ifdef __WXGTK__
|
||||
// Sanity check for GTK+
|
||||
return IsDoubleBuffered();
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxGenericComboCtrl::OnResize()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user