1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 17:13:37 +02:00

Reduce flickering when Time toolbar is huge

This commit is contained in:
Leland Lucius
2020-04-13 09:49:53 -05:00
parent 2e5fc675c7
commit 383000557e

View File

@@ -180,6 +180,7 @@ different formats.
#include <wx/setup.h> // for wxUSE_* macros
#include <wx/wx.h>
#include <wx/dcbuffer.h>
#include <wx/dcmemory.h>
#include <wx/font.h>
#include <wx/intl.h>
@@ -1652,7 +1653,7 @@ void NumericTextCtrl::OnErase(wxEraseEvent & WXUNUSED(event))
void NumericTextCtrl::OnPaint(wxPaintEvent & WXUNUSED(event))
{
wxPaintDC dc(this);
wxBufferedPaintDC dc(this);
bool focused = (FindFocus() == this);
dc.DrawBitmap(*mBackgroundBitmap, 0, 0);