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:
parent
c407e96b14
commit
c18cab6154
|
@ -319,6 +319,7 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
|||
menuBar->Append( viewMenu, _( "&View" ) );
|
||||
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
||||
AddStandardHelpMenu( menuBar );
|
||||
menuBar->SetDoubleBuffered( true );
|
||||
|
||||
SetMenuBar( menuBar );
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -197,8 +197,6 @@ void SCH_DRAW_PANEL::OnShow()
|
|||
if( frame )
|
||||
frame->ActivateGalCanvas();
|
||||
}
|
||||
|
||||
m_parent->SetDoubleBuffered( true );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -87,8 +87,6 @@ SCH_PREVIEW_PANEL::~SCH_PREVIEW_PANEL()
|
|||
|
||||
void SCH_PREVIEW_PANEL::OnShow()
|
||||
{
|
||||
m_parent->SetDoubleBuffered( true );
|
||||
|
||||
//m_view->RecacheAllItems();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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*>(
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() );
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue