changeset 76:f673b6ad2a78

pads2gpcb: soldermask delta and clearance setting moved to variables
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 01 Feb 2016 02:14:10 +0000
parents 959df5ddf7a2
children f640c8f005c5
files pads2gpcb/decals.c pads2gpcb/globals.c pads2gpcb/globals.h
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pads2gpcb/decals.c	Mon Feb 01 02:09:25 2016 +0000
+++ b/pads2gpcb/decals.c	Mon Feb 01 02:14:10 2016 +0000
@@ -18,9 +18,6 @@
 static int num_silk_lines;
 static int num_silk_arcs;
 
-#define	SOLDERMASK_DELTA	(600 * 254)
-#define	CLEARANCE_SETTING	(2000 * 254)
-
 static void
 enter_decal()
 {
@@ -385,8 +382,8 @@
 		return(-1);
 	}
 	pin->thickness = pin->shape.short_dim;
-	pin->clearance = CLEARANCE_SETTING;
-	pin->mask = pin->thickness + SOLDERMASK_DELTA;
+	pin->clearance = clearance_setting;
+	pin->mask = pin->thickness + soldermask_delta;
 	pin->end2 = pin->end1;
 	if (!pin->shape.elongated)
 		return(0);
--- a/pads2gpcb/globals.c	Mon Feb 01 02:09:25 2016 +0000
+++ b/pads2gpcb/globals.c	Mon Feb 01 02:14:10 2016 +0000
@@ -1,4 +1,6 @@
 int input_units_global, input_units_current;
+long soldermask_delta = 600 * 254;
+long clearance_setting = 2000 * 254;
 struct part_decal *part_decal_list;
 struct part_type *part_type_list;
 struct part_instance *part_inst_list;
--- a/pads2gpcb/globals.h	Mon Feb 01 02:09:25 2016 +0000
+++ b/pads2gpcb/globals.h	Mon Feb 01 02:14:10 2016 +0000
@@ -1,5 +1,6 @@
 /* globals.c */
 extern int input_units_global, input_units_current;
+extern long soldermask_delta, clearance_setting;
 extern struct part_decal *part_decal_list;
 extern struct part_type *part_type_list;
 extern struct part_instance *part_inst_list;