FreeCalypso > hg > ueda-linux
comparison pads2gpcb/decals.c @ 59:aeef205f7580
pads2gpcb: width and height in ElementArc need be radius, not diameter
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 31 Jan 2016 03:26:35 +0000 |
parents | 05fd0b432e8c |
children | 0444db01fa4a |
comparison
equal
deleted
inserted
replaced
58:05fd0b432e8c | 59:aeef205f7580 |
---|---|
186 printf("Too many silk arcs!\n"); | 186 printf("Too many silk arcs!\n"); |
187 return(1); | 187 return(1); |
188 } | 188 } |
189 silk_arcs[num_silk_arcs].centre_x = centre_x; | 189 silk_arcs[num_silk_arcs].centre_x = centre_x; |
190 silk_arcs[num_silk_arcs].centre_y = centre_y; | 190 silk_arcs[num_silk_arcs].centre_y = centre_y; |
191 silk_arcs[num_silk_arcs].width = diameter; | 191 silk_arcs[num_silk_arcs].width = diameter / 2; |
192 silk_arcs[num_silk_arcs].height = diameter; | 192 silk_arcs[num_silk_arcs].height = diameter / 2; |
193 silk_arcs[num_silk_arcs].start_angle = 0; | 193 silk_arcs[num_silk_arcs].start_angle = 0; |
194 silk_arcs[num_silk_arcs].delta_angle = 360; | 194 silk_arcs[num_silk_arcs].delta_angle = 360; |
195 silk_arcs[num_silk_arcs].thickness = thickness; | 195 silk_arcs[num_silk_arcs].thickness = thickness; |
196 num_silk_arcs++; | 196 num_silk_arcs++; |
197 return(1); | 197 return(1); |