aboutsummaryrefslogtreecommitdiff
path: root/draw/textw.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw/textw.c')
-rw-r--r--draw/textw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/draw/textw.c b/draw/textw.c
new file mode 100644
index 0000000..a8407f6
--- /dev/null
+++ b/draw/textw.c
@@ -0,0 +1,9 @@
+/* See LICENSE file for copyright and license details. */
+#include <string.h>
+#include <X11/Xlib.h>
+#include "draw.h"
+
+int
+textw(DC *dc, const char *text) {
+ return textnw(dc, text, strlen(text)) + dc->font.height;
+}