From ae612a454e9309471f8aa51aac135ad18cbebc6e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 22 Jun 2021 18:10:05 +0100 Subject: [PATCH] Make blind via rendering more intuitive by putting top on top... bottom on bottom, and the via colour larger. --- pcbnew/pcb_painter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index f166dc94e3..950f117f53 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -791,22 +791,22 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer ) if( !sketchMode ) m_gal->SetLineWidth( ( aVia->GetWidth() - aVia->GetDrillValue() ) / 2.0 ); - m_gal->DrawArc( center, radius, M_PI / 2.0, M_PI ); - m_gal->DrawArc( center, radius, 3.0 * M_PI / 2.0, 2.0 * M_PI ); + m_gal->DrawArc( center, radius, M_PI * -0.375, M_PI * 0.375 ); + m_gal->DrawArc( center, radius, M_PI * 0.625, M_PI * 1.375 ); if( sketchMode ) m_gal->SetStrokeColor( m_pcbSettings.GetColor( aVia, layerTop ) ); else m_gal->SetFillColor( m_pcbSettings.GetColor( aVia, layerTop ) ); - m_gal->DrawArc( center, radius, 0.0, M_PI / 2.0 ); + m_gal->DrawArc( center, radius, M_PI * 1.375, M_PI * 1.625 ); if( sketchMode ) m_gal->SetStrokeColor( m_pcbSettings.GetColor( aVia, layerBottom ) ); else m_gal->SetFillColor( m_pcbSettings.GetColor( aVia, layerBottom ) ); - m_gal->DrawArc( center, radius, M_PI, 3.0 * M_PI / 2.0 ); + m_gal->DrawArc( center, radius, M_PI * 0.375, M_PI * 0.625 ); } // Clearance lines