Revert "Revert "Set DoubleBuffering to reduce flicker""
This reverts commit c18cab6154
.
This commit is contained in:
parent
af501a7e4e
commit
e19a7910f8
|
@ -319,7 +319,6 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
menuBar->Append( viewMenu, _( "&View" ) );
|
menuBar->Append( viewMenu, _( "&View" ) );
|
||||||
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,6 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( editMenu, _( "&Edit" ) );
|
menuBar->Append( editMenu, _( "&Edit" ) );
|
||||||
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -229,7 +229,6 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( inspectMenu, _( "&Inspect" ) );
|
menuBar->Append( inspectMenu, _( "&Inspect" ) );
|
||||||
menuBar->Append( prefsMenu, _( "P&references" ) );
|
menuBar->Append( prefsMenu, _( "P&references" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -343,7 +343,6 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
||||||
menuBar->Append( prefsMenu, _( "P&references" ) );
|
menuBar->Append( prefsMenu, _( "P&references" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -197,6 +197,8 @@ void SCH_DRAW_PANEL::OnShow()
|
||||||
if( frame )
|
if( frame )
|
||||||
frame->ActivateGalCanvas();
|
frame->ActivateGalCanvas();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_parent->SetDoubleBuffered( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,8 @@ SCH_PREVIEW_PANEL::~SCH_PREVIEW_PANEL()
|
||||||
|
|
||||||
void SCH_PREVIEW_PANEL::OnShow()
|
void SCH_PREVIEW_PANEL::OnShow()
|
||||||
{
|
{
|
||||||
|
m_parent->SetDoubleBuffered( true );
|
||||||
|
|
||||||
//m_view->RecacheAllItems();
|
//m_view->RecacheAllItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,6 @@ void LIB_VIEW_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( fileMenu, _( "&File" ) );
|
menuBar->Append( fileMenu, _( "&File" ) );
|
||||||
menuBar->Append( viewMenu, _( "&View" ) );
|
menuBar->Append( viewMenu, _( "&View" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -100,6 +100,7 @@ void GERBVIEW_DRAW_PANEL_GAL::OnShow()
|
||||||
|
|
||||||
if( frame )
|
if( frame )
|
||||||
{
|
{
|
||||||
|
m_parent->SetDoubleBuffered( true );
|
||||||
SetTopLayer( frame->GetActiveLayer() );
|
SetTopLayer( frame->GetActiveLayer() );
|
||||||
auto& displ_opts = frame->GetDisplayOptions();
|
auto& displ_opts = frame->GetDisplayOptions();
|
||||||
static_cast<KIGFX::GERBVIEW_RENDER_SETTINGS*>(
|
static_cast<KIGFX::GERBVIEW_RENDER_SETTINGS*>(
|
||||||
|
|
|
@ -266,7 +266,6 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
||||||
menuBar->Append( preferencesMenu, _( "&Preferences" ) );
|
menuBar->Append( preferencesMenu, _( "&Preferences" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
// Associate the menu bar with the frame, if no previous menubar
|
// Associate the menu bar with the frame, if no previous menubar
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
|
|
|
@ -162,7 +162,6 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
||||||
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -189,7 +189,6 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( inspectorMenu, _( "&Inspect" ) );
|
menuBar->Append( inspectorMenu, _( "&Inspect" ) );
|
||||||
menuBar->Append( preferencesMenu, _( "P&references" ) );
|
menuBar->Append( preferencesMenu, _( "P&references" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -306,7 +306,6 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
||||||
menuBar->Append( prefsMenu, _( "P&references" ) );
|
menuBar->Append( prefsMenu, _( "P&references" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -555,7 +555,6 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
menuBar->Append( toolsMenu, _( "&Tools" ) );
|
||||||
menuBar->Append( prefsMenu, _( "P&references" ) );
|
menuBar->Append( prefsMenu, _( "P&references" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
|
@ -416,6 +416,7 @@ void PCB_DRAW_PANEL_GAL::OnShow()
|
||||||
|
|
||||||
if( frame )
|
if( frame )
|
||||||
{
|
{
|
||||||
|
m_parent->SetDoubleBuffered( true );
|
||||||
SetTopLayer( frame->GetActiveLayer() );
|
SetTopLayer( frame->GetActiveLayer() );
|
||||||
KIGFX::PAINTER* painter = m_view->GetPainter();
|
KIGFX::PAINTER* painter = m_view->GetPainter();
|
||||||
auto settings = static_cast<KIGFX::PCB_RENDER_SETTINGS*>( painter->GetSettings() );
|
auto settings = static_cast<KIGFX::PCB_RENDER_SETTINGS*>( painter->GetSettings() );
|
||||||
|
|
|
@ -189,7 +189,6 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( fileMenu, _( "&File" ) );
|
menuBar->Append( fileMenu, _( "&File" ) );
|
||||||
menuBar->Append( viewMenu, _( "&View" ) );
|
menuBar->Append( viewMenu, _( "&View" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
menuBar->SetDoubleBuffered( true );
|
|
||||||
|
|
||||||
SetMenuBar( menuBar );
|
SetMenuBar( menuBar );
|
||||||
delete oldMenuBar;
|
delete oldMenuBar;
|
||||||
|
|
Loading…
Reference in New Issue