Revert "Set DoubleBuffering to reduce flicker"

This reverts commit 106259f6e6.

In its place, we set double buffering to only menubars in an attempt to
find a soluton to #4785

Fixes https://gitlab.com/kicad/code/kicad/issues/4863
This commit is contained in:
Seth Hillbrand 2020-07-11 09:37:05 -07:00
parent c407e96b14
commit c18cab6154
15 changed files with 11 additions and 6 deletions

View File

@ -319,6 +319,7 @@ void EDA_3D_VIEWER::CreateMenuBar()
menuBar->Append( viewMenu, _( "&View" ) );
menuBar->Append( prefsMenu, _( "&Preferences" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
}

View File

@ -103,6 +103,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
menuBar->Append( editMenu, _( "&Edit" ) );
menuBar->Append( prefsMenu, _( "&Preferences" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -229,6 +229,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
menuBar->Append( inspectMenu, _( "&Inspect" ) );
menuBar->Append( prefsMenu, _( "P&references" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -343,6 +343,7 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
menuBar->Append( toolsMenu, _( "&Tools" ) );
menuBar->Append( prefsMenu, _( "P&references" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -197,8 +197,6 @@ void SCH_DRAW_PANEL::OnShow()
if( frame )
frame->ActivateGalCanvas();
}
m_parent->SetDoubleBuffered( true );
}

View File

@ -87,8 +87,6 @@ SCH_PREVIEW_PANEL::~SCH_PREVIEW_PANEL()
void SCH_PREVIEW_PANEL::OnShow()
{
m_parent->SetDoubleBuffered( true );
//m_view->RecacheAllItems();
}

View File

@ -138,6 +138,7 @@ void LIB_VIEW_FRAME::ReCreateMenuBar()
menuBar->Append( fileMenu, _( "&File" ) );
menuBar->Append( viewMenu, _( "&View" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -100,7 +100,6 @@ void GERBVIEW_DRAW_PANEL_GAL::OnShow()
if( frame )
{
m_parent->SetDoubleBuffered( true );
SetTopLayer( frame->GetActiveLayer() );
auto& displ_opts = frame->GetDisplayOptions();
static_cast<KIGFX::GERBVIEW_RENDER_SETTINGS*>(

View File

@ -266,6 +266,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
menuBar->Append( toolsMenu, _( "&Tools" ) );
menuBar->Append( preferencesMenu, _( "&Preferences" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
// Associate the menu bar with the frame, if no previous menubar
SetMenuBar( menuBar );

View File

@ -162,6 +162,7 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
menuBar->Append( toolsMenu, _( "&Tools" ) );
menuBar->Append( prefsMenu, _( "&Preferences" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -189,6 +189,7 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
menuBar->Append( inspectorMenu, _( "&Inspect" ) );
menuBar->Append( preferencesMenu, _( "P&references" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -305,6 +305,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
menuBar->Append( toolsMenu, _( "&Tools" ) );
menuBar->Append( prefsMenu, _( "P&references" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -555,6 +555,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
menuBar->Append( toolsMenu, _( "&Tools" ) );
menuBar->Append( prefsMenu, _( "P&references" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;

View File

@ -416,7 +416,6 @@ void PCB_DRAW_PANEL_GAL::OnShow()
if( frame )
{
m_parent->SetDoubleBuffered( true );
SetTopLayer( frame->GetActiveLayer() );
KIGFX::PAINTER* painter = m_view->GetPainter();
auto settings = static_cast<KIGFX::PCB_RENDER_SETTINGS*>( painter->GetSettings() );

View File

@ -189,6 +189,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar()
menuBar->Append( fileMenu, _( "&File" ) );
menuBar->Append( viewMenu, _( "&View" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;