1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-18 17:10:05 +02:00

Add B. Drung's patch for bug #175 under an #ifdef so it doesn't mess up Windows

This commit is contained in:
BusinessmanProgrammerSteve 2010-10-18 07:09:42 +00:00
parent cb51d71099
commit ece4d2ac8c

View File

@ -62,6 +62,7 @@ of an LWSlider or ASlider.
#include <wx/button.h>
#include <wx/statline.h>
#include <wx/sizer.h>
#include <wx/settings.h>
#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.