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

Fix bug where MixerBoard sliders did not redraw on resizing.

Vital feature of MixerBoard as the point is to be able to have large sliders.
The problem was that the slider background was cached in a bitmap, and that cached image was not being refreshed on a resize.
This commit is contained in:
James Crook 2016-08-18 22:52:27 +01:00
parent af61389322
commit 8b90a8f34d

View File

@ -565,6 +565,9 @@ void LWSlider::AdjustSize(const wxSize & sz)
mWidth = sz.GetWidth();
mHeight = sz.GetHeight();
if( mBitmap ){
mBitmap.release();
}
mThumbWidth = 14;
mThumbHeight = 14;