From 383000557e9376f2eed87ddf39674c3f5a2e9285 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Mon, 13 Apr 2020 09:49:53 -0500 Subject: [PATCH] Reduce flickering when Time toolbar is huge --- src/widgets/NumericTextCtrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/NumericTextCtrl.cpp b/src/widgets/NumericTextCtrl.cpp index 5b3096a94..6fe71ea70 100644 --- a/src/widgets/NumericTextCtrl.cpp +++ b/src/widgets/NumericTextCtrl.cpp @@ -180,6 +180,7 @@ different formats. #include // for wxUSE_* macros #include +#include #include #include #include @@ -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);