]> Dogcows Code - chaz/openbox/blobdiff - render/font.c
half way through the changes to new menu code/design. hot shit. static menus work...
[chaz/openbox] / render / font.c
index d2a4acaeed31e0b8177d4903489d136a3b913581..94d9fa2db47e48f2805cf29c41d021b247f782f3 100644 (file)
@@ -7,6 +7,7 @@
 #include <X11/Xft/Xft.h>
 #include <glib.h>
 #include <string.h>
+#include <stdlib.h>
 
 #define ELIPSES "..."
 #define ELIPSES_LENGTH(font) \
@@ -132,7 +133,7 @@ int RrFontMeasureString(const RrFont *f, const gchar *str)
 {
     gint x, y;
     font_measure_full (f, str, &x, &y);
-    return x;
+    return x + 4;
 }
 
 int RrFontHeight(const RrFont *f)
This page took 0.021738 seconds and 4 git commands to generate.