diff pads2gpcb/decals.c @ 68:b7f49f029bc3

pads2gpcb: use Cartesian Y axis direction internally
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 31 Jan 2016 23:19:37 +0000
parents 455a0051f9d2
children a7f0e9bb3fb7
line wrap: on
line diff
--- a/pads2gpcb/decals.c	Sun Jan 31 22:59:36 2016 +0000
+++ b/pads2gpcb/decals.c	Sun Jan 31 23:19:37 2016 +0000
@@ -102,7 +102,7 @@
 			continue;
 		}
 		x[i] = convert_input_dim(input_line_fields[0]);
-		y[i] = -convert_input_dim(input_line_fields[1]);
+		y[i] = convert_input_dim(input_line_fields[1]);
 	}
 	if (bad)
 		return(1);
@@ -149,7 +149,7 @@
 			continue;
 		}
 		x[i] = convert_input_dim(input_line_fields[0]);
-		y[i] = -convert_input_dim(input_line_fields[1]);
+		y[i] = convert_input_dim(input_line_fields[1]);
 	}
 	if (bad)
 		return(1);
@@ -267,7 +267,7 @@
 		exit(1);
 	}
 	pins_array[idx].x1 = convert_input_dim(input_line_fields[0]);
-	pins_array[idx].y1 = -convert_input_dim(input_line_fields[1]);
+	pins_array[idx].y1 = convert_input_dim(input_line_fields[1]);
 }
 
 static void
@@ -472,7 +472,7 @@
 	else
 		input_units_current = fpbody.src_units;
 	fpbody.mark_x = convert_input_dim(input_line_fields[2]);
-	fpbody.mark_y = -convert_input_dim(input_line_fields[3]);
+	fpbody.mark_y = convert_input_dim(input_line_fields[3]);
 	num_drawing_pieces = atoi(input_line_fields[4]);
 	fpbody.npins = atoi(input_line_fields[5]);
 	num_padstack_defs = atoi(input_line_fields[6]);