mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Bug 1886 - Sluggish behaviour caused by the large time taken to draw the Track Control Panel
All backing bitmaps (not just the one in track panel) now are set to 24 bits. Big thanks to David Bailes for tracking down the root cause of slow BitBlts, and the comments at https://trac.wxwidgets.org/ticket/14403 which led to the fix. In testing the bitmaps, I also fixed the sizer errors reported for Export.cpp that wxWidgets now reports as ASSERTS when running in debug builds.
This commit is contained in:
@@ -1068,7 +1068,7 @@ void ExportMixerPanel::OnPaint(wxPaintEvent & WXUNUSED(event))
|
||||
{
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
mBitmap = std::make_unique<wxBitmap>( mWidth, mHeight );
|
||||
mBitmap = std::make_unique<wxBitmap>( mWidth, mHeight,24 );
|
||||
}
|
||||
|
||||
wxColour bkgnd = GetBackgroundColour();
|
||||
@@ -1311,7 +1311,7 @@ ExportMixerDialog::ExportMixerDialog( const TrackList *tracks, bool selectedOnly
|
||||
mMixerSpec.get(), mTrackNames,
|
||||
wxDefaultPosition, wxSize(400, -1));
|
||||
mixerPanel->SetName(_("Mixer Panel"));
|
||||
vertSizer->Add(mixerPanel, 1, wxEXPAND | wxALIGN_CENTRE | wxALL, 5);
|
||||
vertSizer->Add(mixerPanel, 1, wxEXPAND | wxALL, 5);
|
||||
|
||||
{
|
||||
auto horSizer = std::make_unique<wxBoxSizer>(wxHORIZONTAL);
|
||||
|
||||
Reference in New Issue
Block a user