From 7f991ce855839318dead1188d2ef986b88e21ce7 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 13 Jul 2020 20:19:11 -0700 Subject: [PATCH] Revert "Set DoubleBuffering to reduce flicker" This reverts commit 106259f6e6b3e896ee2190195747df753ed308c8. --- eeschema/sch_draw_panel.cpp | 2 -- eeschema/sch_preview_panel.cpp | 2 -- gerbview/gerbview_draw_panel_gal.cpp | 1 - pcbnew/pcb_draw_panel_gal.cpp | 1 - 4 files changed, 6 deletions(-) diff --git a/eeschema/sch_draw_panel.cpp b/eeschema/sch_draw_panel.cpp index 69ee6aa1a6..5991d1278f 100644 --- a/eeschema/sch_draw_panel.cpp +++ b/eeschema/sch_draw_panel.cpp @@ -197,8 +197,6 @@ void SCH_DRAW_PANEL::OnShow() if( frame ) frame->ActivateGalCanvas(); } - - m_parent->SetDoubleBuffered( true ); } diff --git a/eeschema/sch_preview_panel.cpp b/eeschema/sch_preview_panel.cpp index 02da8dfbbe..da6a3e240e 100644 --- a/eeschema/sch_preview_panel.cpp +++ b/eeschema/sch_preview_panel.cpp @@ -87,8 +87,6 @@ SCH_PREVIEW_PANEL::~SCH_PREVIEW_PANEL() void SCH_PREVIEW_PANEL::OnShow() { - m_parent->SetDoubleBuffered( true ); - //m_view->RecacheAllItems(); } diff --git a/gerbview/gerbview_draw_panel_gal.cpp b/gerbview/gerbview_draw_panel_gal.cpp index 59ce9eac36..28b541c806 100644 --- a/gerbview/gerbview_draw_panel_gal.cpp +++ b/gerbview/gerbview_draw_panel_gal.cpp @@ -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( diff --git a/pcbnew/pcb_draw_panel_gal.cpp b/pcbnew/pcb_draw_panel_gal.cpp index 3ec08a70c2..077373c719 100644 --- a/pcbnew/pcb_draw_panel_gal.cpp +++ b/pcbnew/pcb_draw_panel_gal.cpp @@ -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( painter->GetSettings() );