Xinqi Bao's Git
projects
/
dmenu.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
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
+++ 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;
+}