summaryrefslogtreecommitdiff
path: root/gfx/gfx.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/gfx.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/gfx.c')
-rw-r--r--gfx/gfx.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gfx/gfx.c b/gfx/gfx.c
index 0b407ba..a0f055f 100644
--- a/gfx/gfx.c
+++ b/gfx/gfx.c
@@ -81,9 +81,11 @@ void gfx_arc(struct gfx *gfx, int x, int y, int r, int sa, int ea,
void gfx_text(struct gfx *gfx, int x, int y, const char *s, unsigned size,
- enum text_align align, int rot, unsigned color, unsigned layer)
+ enum text_align align, int rot, enum text_style style,
+ unsigned color, unsigned layer)
{
- gfx->ops->text(gfx->user, x, y, s, size, align, rot, color, layer);
+ gfx->ops->text(gfx->user, x, y, s, size, align, rot, style,
+ color, layer);
}
@@ -95,9 +97,10 @@ void gfx_tag(struct gfx *gfx, const char *s,
}
-unsigned gfx_text_width(struct gfx *gfx, const char *s, unsigned size)
+unsigned gfx_text_width(struct gfx *gfx, const char *s, unsigned size,
+ enum text_style style)
{
- return gfx->ops->text_width(gfx->user, s, size);
+ return gfx->ops->text_width(gfx->user, s, size, style);
}