summaryrefslogtreecommitdiff
path: root/gfx/fig.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/fig.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/fig.c')
-rw-r--r--gfx/fig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/fig.c b/gfx/fig.c
index d469a28..fbb3a8f 100644
--- a/gfx/fig.c
+++ b/gfx/fig.c
@@ -163,7 +163,8 @@ static void fig_tag(void *ctx, const char *s,
static void fig_text(void *ctx, 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)
{
// Type Depth FontSiz Height
// Just Pen Angle Length
@@ -174,7 +175,8 @@ static void fig_text(void *ctx, int x, int y, const char *s, unsigned size,
}
-static unsigned fig_text_width(void *ctx, const char *s, unsigned size)
+static unsigned fig_text_width(void *ctx, const char *s, unsigned size,
+ enum text_style style)
{
/*
* Note that we stretch the text size, so the ratio is larger than