Xinqi Bao's Git

moved draw.c to libdraw.a
[dmenu.git] / draw / textw.c
diff --git a/draw/textw.c b/draw/textw.c
new file mode 100644 (file)
index 0000000..a8407f6
--- /dev/null
@@ -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;
+}