From ece4d2ac8c934fe651aa723b2753b095732c571d Mon Sep 17 00:00:00 2001 From: BusinessmanProgrammerSteve Date: Mon, 18 Oct 2010 07:09:42 +0000 Subject: [PATCH] Add B. Drung's patch for bug #175 under an #ifdef so it doesn't mess up Windows --- src/widgets/ASlider.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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.