From 90e6cd0407313858daef2eb6ecfd5cd04a2a72a8 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 20 Mar 2015 02:27:57 +0100 Subject: Fixes for vertical alignment and border drawing --- src/XUtil.hsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/XUtil.hsc') diff --git a/src/XUtil.hsc b/src/XUtil.hsc index 5d177c5..914ebdd 100644 --- a/src/XUtil.hsc +++ b/src/XUtil.hsc @@ -184,8 +184,8 @@ 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 (y - a + 1) (xglyphinfo_xOff gi) (a + d) - drawXftString' draw fc' fonts (toInteger x) (toInteger y) s + drawXftRect draw bc' x (y - a) (xglyphinfo_xOff gi) (a + d + 1) + drawXftString' draw fc' fonts (toInteger x) (toInteger (y - 1)) s #endif -- cgit v1.2.3