summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-30 01:20:14 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-30 01:22:03 (GMT)
commit7fe214cc9c8d8b68e05f9dffc39c044fe2788893 (patch)
tree3068c6edb2681fca054260e2ed9d9e004bd10fbc /kicad
parentafc999c766661b50d9f3070864a3d9c3c2c9c500 (diff)
downloadeeshow-7fe214cc9c8d8b68e05f9dffc39c044fe2788893.zip
eeshow-7fe214cc9c8d8b68e05f9dffc39c044fe2788893.tar.gz
eeshow-7fe214cc9c8d8b68e05f9dffc39c044fe2788893.tar.bz2
"F" now toggles display of invisible footprints
Diffstat (limited to 'kicad')
-rw-r--r--kicad/sch-render.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 830c99a..fdb945d 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -122,9 +122,17 @@ static void render_comp(const struct sch_comp *comp, struct gfx *gfx)
const struct comp_field *field;
lib_render(comp->comp, gfx, comp->unit, comp->convert, comp->m);
- for (field = comp->fields; field; field = field->next)
- if (field->visible)
+ for (field = comp->fields; field; field = field->next) {
+ if (field->visible) {
dump_field(field, gfx, comp->m);
+ } else {
+ if (field->n == 2) {
+ gfx_set_extra(gfx, gfx_footprint);
+ dump_field(field, gfx, comp->m);
+ gfx_set_extra(gfx, 0);
+ }
+ }
+ }
}