Revert "Revert "Set DoubleBuffering to reduce flicker""

This reverts commit c18cab6154.
This commit is contained in:
Seth Hillbrand 2020-07-13 20:19:10 -07:00
parent af501a7e4e
commit e19a7910f8
15 changed files with 6 additions and 11 deletions

View File

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

View File

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

View File

@ -229,7 +229,6 @@ 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,7 +343,6 @@ 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,6 +197,8 @@ void SCH_DRAW_PANEL::OnShow()
if( frame )
frame->ActivateGalCanvas();
}
m_parent->SetDoubleBuffered( true );
}

View File

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

View File

@ -138,7 +138,6 @@ 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,6 +100,7 @@ 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,7 +266,6 @@ 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,7 +162,6 @@ 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,7 +189,6 @@ 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

@ -306,7 +306,6 @@ 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,7 +555,6 @@ 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,6 +416,7 @@ 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,7 +189,6 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar()
menuBar->Append( fileMenu, _( "&File" ) );
menuBar->Append( viewMenu, _( "&View" ) );
AddStandardHelpMenu( menuBar );
menuBar->SetDoubleBuffered( true );
SetMenuBar( menuBar );
delete oldMenuBar;