From 8b90a8f34df47889c7157694acf9d15b6ed70f1f Mon Sep 17 00:00:00 2001 From: James Crook Date: Thu, 18 Aug 2016 22:52:27 +0100 Subject: [PATCH] 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. --- src/widgets/ASlider.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index d2ddccf87..431179a18 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -565,6 +565,9 @@ void LWSlider::AdjustSize(const wxSize & sz) mWidth = sz.GetWidth(); mHeight = sz.GetHeight(); + if( mBitmap ){ + mBitmap.release(); + } mThumbWidth = 14; mThumbHeight = 14;