summaryrefslogtreecommitdiff
path: root/kicad/pl-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/pl-render.c')
-rw-r--r--kicad/pl-render.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index 6be02e4..311a0f5 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -42,11 +42,12 @@ static int coord(int v, int d, int o, int e)
}
-static void render_text(const struct pl_obj *obj, int x, int y)
+static void render_text(const struct pl_ctx *pl, const struct pl_obj *obj,
+ int x, int y)
{
struct text txt = {
.s = obj->s,
- .size = mil(obj->ey),
+ .size = mil(obj->ey ? obj->ey : pl->ty),
.x = x,
.y = y,
.rot = 0,
@@ -96,7 +97,7 @@ static void render_obj(const struct pl_ctx *pl, const struct pl_obj *obj,
}
break;
case pl_obj_text:
- render_text(obj, x, y);
+ render_text(pl, obj, x, y);
break;
default:
break;