summaryrefslogtreecommitdiff
path: root/gfx/text.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-26 01:29:12 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-26 01:40:30 -0300
commit910608ba17c7ad3cba78d274d0bbc4037042e145 (patch)
treeecd35fbe8403eaddccd4282bd63d35e628f59db5 /gfx/text.c
parent975bcea4f1735372eb8d25dba32b61c3670af0d8 (diff)
downloadeeshow-910608ba17c7ad3cba78d274d0bbc4037042e145.tar.gz
eeshow-910608ba17c7ad3cba78d274d0bbc4037042e145.tar.bz2
eeshow-910608ba17c7ad3cba78d274d0bbc4037042e145.zip
pass text style to gfx_text{,_width} and related functions
Diffstat (limited to 'gfx/text.c')
-rw-r--r--gfx/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx/text.c b/gfx/text.c
index df3e5cc..ad345ad 100644
--- a/gfx/text.c
+++ b/gfx/text.c
@@ -115,8 +115,8 @@ void text_show(const struct text *txt, struct gfx *gfx,
if (!s)
break;
tmp = NULL;
- gfx_text(gfx, x, y, s, txt->size, txt->hor, txt->rot, color,
- layer);
+ gfx_text(gfx, x, y, s, txt->size, txt->hor, txt->rot,
+ txt->style, color, layer);
x += rx(0, NEWLINE_SKIP * txt->size, txt->rot);
y += ry(0, NEWLINE_SKIP * txt->size, txt->rot);
}
@@ -128,7 +128,7 @@ void text_rel(const struct text *txt, struct gfx *gfx,
enum text_align xr, enum text_align yr,
int dx, int dy, int *res_x, int *res_y)
{
- int width = gfx_text_width(gfx, txt->s, txt->size);
+ int width = gfx_text_width(gfx, txt->s, txt->size, txt->style);
dx -= align(width, txt->hor);
dy += align(txt->size, txt->vert);