Date: | 2012-07-19 01:38:14 (11 years 8 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 26b74e867afcf5a6e0dab7a78c6bdb801062d078 |
Message: | postscript.c (hatch): change argument from layer set to pad type For sharing. |
Files: |
postscript.c (3 diffs) |
Change Details
postscript.c | ||
---|---|---|
238 | 238 | } |
239 | 239 | |
240 | 240 | |
241 | static const char *hatch(layer_type layers) | |
241 | static const char *hatch(enum pad_type type) | |
242 | 242 | { |
243 | switch (layers_to_pad_type(layers)) { | |
243 | switch (type) { | |
244 | 244 | case pt_normal: |
245 | 245 | return "crosspath"; |
246 | 246 | case pt_bare: |
... | ... | |
260 | 260 | static void ps_pad(FILE *file, const struct inst *inst, int show_name) |
261 | 261 | { |
262 | 262 | ps_filled_box(file, inst->base, inst->u.pad.other, |
263 | hatch(inst->u.pad.layers)); | |
263 | hatch(layers_to_pad_type(inst->u.pad.layers))); | |
264 | 264 | |
265 | 265 | if (show_name && !inst->u.pad.hole) |
266 | 266 | ps_pad_name(file, inst); |
... | ... | |
296 | 296 | fprintf(file, "0 setgray %d setlinewidth\n", PS_HATCH_LINE); |
297 | 297 | ps_rounded_rect(file, inst->base, inst->u.pad.other); |
298 | 298 | fprintf(file, " closepath gsave %s grestore stroke\n", |
299 | hatch(inst->u.pad.layers)); | |
299 | hatch(layers_to_pad_type(inst->u.pad.layers))); | |
300 | 300 | |
301 | 301 | if (show_name && !inst->u.pad.hole) |
302 | 302 | ps_pad_name(file, inst); |
Branches:
master