From 7fcc2e638c95dcf7b666c902df40ec5db757af4e Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 9 Dec 2020 20:21:24 -0500 Subject: [PATCH] Fix flickering on msgpanel paints --- common/widgets/msgpanel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/widgets/msgpanel.cpp b/common/widgets/msgpanel.cpp index 456045039e..831d473786 100644 --- a/common/widgets/msgpanel.cpp +++ b/common/widgets/msgpanel.cpp @@ -47,6 +47,10 @@ EDA_MSG_PANEL::EDA_MSG_PANEL( wxWindow* aParent, int aId, { SetFont( wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ) ); SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) ); + + // informs wx not to paint the background itself as we will paint it later in erase() + SetBackgroundStyle( wxBG_STYLE_PAINT ); + m_last_x = 0; m_fontSize = computeFontSize();