From 8b843d023ce64dffadb34c359f11d4637468a754 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 13 Dec 2020 13:14:12 -0500 Subject: [PATCH] Double buffer the info panel Fix #6721 --- common/widgets/infobar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/widgets/infobar.cpp b/common/widgets/infobar.cpp index d00e866f72..fe8d59bc4e 100644 --- a/common/widgets/infobar.cpp +++ b/common/widgets/infobar.cpp @@ -51,6 +51,9 @@ WX_INFOBAR::WX_INFOBAR( wxWindow* aParent, wxWindowID aWinid ) SetShowHideEffects( wxSHOW_EFFECT_ROLL_TO_BOTTOM, wxSHOW_EFFECT_ROLL_TO_TOP ); SetEffectDuration( 300 ); + // Prevent draw flicker observed on windows + SetDoubleBuffered( true ); + // The infobar seems to start too small, so increase its height int sx, sy; GetSize( &sx, &sy );