From bb406692011a78cb15414ec58e21487e927a597a Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 19 Mar 2015 01:24:22 +0100 Subject: More alignment fixes --- src/XUtil.hsc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/XUtil.hsc') diff --git a/src/XUtil.hsc b/src/XUtil.hsc index b8f6a73..5d177c5 100644 --- a/src/XUtil.hsc +++ b/src/XUtil.hsc @@ -184,9 +184,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 - fi (xglyphinfo_x gi)) (y - a) - (xglyphinfo_xOff gi) (a + d) + drawXftRect draw bc' x (y - a + 1) (xglyphinfo_xOff gi) (a + d) drawXftString' draw fc' fonts (toInteger x) (toInteger y) s #endif -- cgit v1.2.3