From 1b4660954574fa06ffe89b2be3865f6e9072308f Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 20 May 2015 02:11:32 +0200 Subject: Umpteenth attempt at background horizontal alignment --- src/XUtil.hsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XUtil.hsc b/src/XUtil.hsc index e37d419..e63c9cb 100644 --- a/src/XUtil.hsc +++ b/src/XUtil.hsc @@ -190,7 +190,7 @@ printString dpy drw fs@(Xft fonts) _ fc bc x y s al = do when (al == 255) $ do (a,d) <- textExtents fs s gi <- xftTxtExtents' dpy fonts s - drawXftRect draw bc' (x - 1) (y - a) (2 + xglyphinfo_xOff gi) (a + d + 2) + drawXftRect draw bc' x (y - a) (1 + xglyphinfo_xOff gi) (a + d + 2) drawXftString' draw fc' fonts (toInteger x) (toInteger y) s #endif -- cgit v1.2.3