summaryrefslogtreecommitdiff
path: root/gui/over.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-15 14:30:24 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-15 14:32:02 -0300
commit41ee777fb5d88b523636ec52ba04ffb0a843d06d (patch)
treebf0d37302681da334ff7f6174a76a398f60ef32e /gui/over.c
parent838de96c89a0ceddc5b41dc47624ccc699a2c6d1 (diff)
downloadeeshow-41ee777fb5d88b523636ec52ba04ffb0a843d06d.tar.gz
eeshow-41ee777fb5d88b523636ec52ba04ffb0a843d06d.tar.bz2
eeshow-41ee777fb5d88b523636ec52ba04ffb0a843d06d.zip
gui/over.c, over.h (overlay_vtext): vprintf-style variant of overlay_text
Diffstat (limited to 'gui/over.c')
-rw-r--r--gui/over.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/over.c b/gui/over.c
index b779aee..b321368 100644
--- a/gui/over.c
+++ b/gui/over.c
@@ -471,12 +471,18 @@ void overlay_text_raw(struct overlay *over, const char *s)
}
+void overlay_vtext(struct overlay *over, const char *fmt, va_list ap)
+{
+ overlay_text_raw(over, vfmt_pango(fmt, ap));
+}
+
+
void overlay_text(struct overlay *over, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
- overlay_text_raw(over, vfmt_pango(fmt, ap));
+ overlay_vtext(over, fmt, ap);
va_end(ap);
}