]> 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 67e19ec240831874c73eb4fc629e6d6d4f81cbf5..94d9fa2db47e48f2805cf29c41d021b247f782f3 100644 (file)
@@ -2,9 +2,7 @@
 #include "color.h"
 #include "mask.h"
 #include "theme.h"
-#include "kernel/geom.h"
-#include "kernel/gettext.h"
-#define _(str) gettext(str)
+#include "gettext.h"
 
 #include <X11/Xft/Xft.h>
 #include <glib.h>
@@ -135,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)
@@ -149,7 +147,7 @@ int RrFontMaxCharWidth(const RrFont *f)
     return (signed) f->xftfont->max_advance_width;
 }
 
-void RrFontDraw(XftDraw *d, RrTextureText *t, Rect *area)
+void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area)
 {
     gint x,y,w,h;
     XftColor c;
This page took 0.021322 seconds and 4 git commands to generate.