mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01: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:
@@ -565,6 +565,9 @@ void LWSlider::AdjustSize(const wxSize & sz)
|
|||||||
mWidth = sz.GetWidth();
|
mWidth = sz.GetWidth();
|
||||||
mHeight = sz.GetHeight();
|
mHeight = sz.GetHeight();
|
||||||
|
|
||||||
|
if( mBitmap ){
|
||||||
|
mBitmap.release();
|
||||||
|
}
|
||||||
mThumbWidth = 14;
|
mThumbWidth = 14;
|
||||||
mThumbHeight = 14;
|
mThumbHeight = 14;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user