diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index 098a15c3e..bba3b568f 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -62,6 +62,7 @@ of an LWSlider or ASlider. #include #include #include +#include #if defined(__WXMSW__) && !defined(__CYGWIN__) #define USE_POPUPWIN 1 @@ -720,7 +721,13 @@ void LWSlider::Draw() TransparentColour = theTheme.Colour( clrTrackInfo ); #endif +#ifdef __WXGTK__ + // AWD: this is from a patch posted by B. Drung on bug #175, but it breaks + // things on Windows + dc->SetBackground( wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND) ); +#else dc->SetBackground( wxBrush( TransparentColour ) ); +#endif dc->Clear(); // Draw the line along which the thumb moves.