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:
parent
cb51d71099
commit
ece4d2ac8c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user