summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-26 01:18:10 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-26 01:40:30 -0300
commit975bcea4f1735372eb8d25dba32b61c3670af0d8 (patch)
treea6e646113d357584c2047bc9765a60969b2151df /kicad
parentdfd916f49f4552be1d1dc44c6e0dc925a50c4c3f (diff)
downloadeeshow-975bcea4f1735372eb8d25dba32b61c3670af0d8.tar.gz
eeshow-975bcea4f1735372eb8d25dba32b61c3670af0d8.tar.bz2
eeshow-975bcea4f1735372eb8d25dba32b61c3670af0d8.zip
gfx/text.c (text_fig): rename to text_show
The days of only doing FIG are long gone ...
Diffstat (limited to 'kicad')
-rw-r--r--kicad/dwg.c8
-rw-r--r--kicad/lib-render.c6
-rw-r--r--kicad/pl-render.c2
-rw-r--r--kicad/sch-render.c6
4 files changed, 11 insertions, 11 deletions
diff --git a/kicad/dwg.c b/kicad/dwg.c
index 7b2be1c..2779867 100644
--- a/kicad/dwg.c
+++ b/kicad/dwg.c
@@ -122,7 +122,7 @@ void dwg_label(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
txt.y -= dy * LABEL_OFFSET;
txt.x += dx * LABEL_OFFSET;
- text_fig(&txt, gfx, COLOR_LABEL, LAYER_LABEL);
+ text_show(&txt, gfx, COLOR_LABEL, LAYER_LABEL);
}
@@ -258,7 +258,7 @@ void dwg_glabel(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
assert(0);
}
- text_fig(&txt, gfx, COLOR_GLABEL, LAYER_GLABEL);
+ text_show(&txt, gfx, COLOR_GLABEL, LAYER_GLABEL);
vx[0] = vx[n - 1];
vy[0] = vy[n - 1];
@@ -399,7 +399,7 @@ void dwg_hlabel(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
txt.rot = rot % 180;
- text_fig(&txt, gfx, COLOR_HLABEL, LAYER_HLABEL);
+ text_show(&txt, gfx, COLOR_HLABEL, LAYER_HLABEL);
gfx_poly(gfx, n + 1, vx, vy, COLOR_HLABEL, COLOR_NONE, LAYER_HLABEL);
}
@@ -438,7 +438,7 @@ void dwg_text(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
assert(2 + 2 == 5);
}
- text_fig(&txt, gfx, COLOR_TEXT, LAYER_TEXT);
+ text_show(&txt, gfx, COLOR_TEXT, LAYER_TEXT);
}
diff --git a/kicad/lib-render.c b/kicad/lib-render.c
index 8c9e328..88a161d 100644
--- a/kicad/lib-render.c
+++ b/kicad/lib-render.c
@@ -250,7 +250,7 @@ static void draw_pin_name(const struct comp *comp, const struct lib_pin *pin,
break;
}
- text_fig(&txt, gfx, COLOR_PIN_NAME, LAYER_PIN_NAME);
+ text_show(&txt, gfx, COLOR_PIN_NAME, LAYER_PIN_NAME);
}
@@ -311,7 +311,7 @@ static void draw_pin_num(const struct comp *comp, const struct lib_pin *pin,
break;
}
- text_fig(&txt, gfx, COLOR_PIN_NUMBER, LAYER_PIN_NUMBER);
+ text_show(&txt, gfx, COLOR_PIN_NUMBER, LAYER_PIN_NUMBER);
}
@@ -704,7 +704,7 @@ static void draw_text(const struct lib_text *text, struct gfx *gfx,
BUG("unknown rotation %d", txt.rot);
}
- text_fig(&txt, gfx, COLOR_COMP_DWG, WIDTH_COMP_DWG);
+ text_show(&txt, gfx, COLOR_COMP_DWG, WIDTH_COMP_DWG);
}
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index 8787e05..914eee7 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -182,7 +182,7 @@ static void render_text(const struct pl_ctx *pl, const struct pl_obj *obj,
}
}
txt.s = s;
- text_fig(&txt, gfx, COLOR_COMP_DWG, LAYER_COMP_DWG);
+ text_show(&txt, gfx, COLOR_COMP_DWG, LAYER_COMP_DWG);
free(s);
}
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 48015f6..5d3c9e0 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -62,7 +62,7 @@ static void dump_field(const struct comp_field *field, struct gfx *gfx,
txt.vert = text_flip(txt.vert);
}
- text_fig(&txt, gfx, COLOR_FIELD, LAYER_FIELD);
+ text_show(&txt, gfx, COLOR_FIELD, LAYER_FIELD);
}
@@ -108,8 +108,8 @@ static void do_hsheet_text(const struct sch_obj *obj,
file_txt.y += sheet->h + HSHEET_FIELD_OFFSET;
}
- text_fig(&sheet_txt, gfx, COLOR_HSHEET_SHEET, LAYER_HSHEET_FIELD);
- text_fig(&file_txt, gfx, COLOR_HSHEET_FILE, LAYER_HSHEET_FIELD);
+ text_show(&sheet_txt, gfx, COLOR_HSHEET_SHEET, LAYER_HSHEET_FIELD);
+ text_show(&file_txt, gfx, COLOR_HSHEET_FILE, LAYER_HSHEET_FIELD);
// free((void *) ctx->sheet);
// free((void *) ctx->file);