1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Add rotated pip

Also remove dead code from theming.
This commit is contained in:
James Crook
2017-04-26 22:29:57 +01:00
parent 603b5a8721
commit f0db511724
4 changed files with 8 additions and 13 deletions

View File

@@ -656,9 +656,10 @@ void LWSlider::Draw(wxDC & paintDC)
if (mOrientation == wxVERTICAL){
wxImage img(theTheme.Bitmap( bmpSliderThumb ).ConvertToImage() );
wxImage img2 = img.Rotate90(false);
mThumbBitmap = std::make_unique<wxBitmap>(wxBitmap( img2));
// wxImage img(theTheme.Bitmap( bmpSliderThumb ).ConvertToImage() );
// wxImage img2 = img.Rotate90(false);
// mThumbBitmap = std::make_unique<wxBitmap>(wxBitmap( img2));
mThumbBitmap = std::make_unique<wxBitmap>(wxBitmap( theTheme.Bitmap( bmpSliderThumbRotated )));
}
else
mThumbBitmap = std::make_unique<wxBitmap>(wxBitmap( theTheme.Bitmap( bmpSliderThumb )));