Make small drill marks size configurable via advanced config for both printing and plotting

Fixes https://gitlab.com/kicad/code/kicad/-/issues/1972
This commit is contained in:
Zoltan Gyarmati
2021-01-05 22:37:34 +00:00
committed by Jeff Young
parent 1c7a5c46e5
commit 5676117d0b
6 changed files with 25 additions and 5 deletions
+3 -1
View File
@@ -50,6 +50,7 @@
#include <pad_shapes.h> // for PAD_ATTRIB_NPTH
#include <pcbplot.h>
#include <pcb_plot_params.h> // for PCB_PLOT_PARAMS, PCB_PL...
#include <advanced_config.h>
#include <board.h>
#include <board_item.h> // for BOARD_ITEM, S_CIRCLE
@@ -1014,7 +1015,8 @@ void BRDITEMS_PLOTTER::PlotDrillMarks()
{
/* If small drills marks were requested prepare a clamp value to pass
to the helper function */
int smallDrill = GetDrillMarksType() == PCB_PLOT_PARAMS::SMALL_DRILL_SHAPE ? SMALL_DRILL : 0;
int smallDrill = GetDrillMarksType() == PCB_PLOT_PARAMS::SMALL_DRILL_SHAPE
? Millimeter2iu( ADVANCED_CFG::GetCfg().m_SmallDrillMarkSize ) : 0;
/* In the filled trace mode drill marks are drawn white-on-black to scrape
the underlying pad. This works only for drivers supporting color change,