Fix flickering on msgpanel paints

This commit is contained in:
Marek Roszko 2020-12-09 20:21:24 -05:00
parent 90d58c8509
commit 7fcc2e638c
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ EDA_MSG_PANEL::EDA_MSG_PANEL( wxWindow* aParent, int aId,
{ {
SetFont( wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ) ); SetFont( wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ) );
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) ); 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_last_x = 0;
m_fontSize = computeFontSize(); m_fontSize = computeFontSize();