[hackers] [st] When the drawing behaviour was changed underline was not corrected. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Fri, 5 Oct 2012 09:40:48 +0200 (CEST)

changeset: 347:f80a970a2fda
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Fri Oct 05 09:38:10 2012 +0200
files: st.c
description:
When the drawing behaviour was changed underline was not corrected.
Thanks to Peter A. Shevtsov!


diff -r 097a8580d33c -r f80a970a2fda st.c
--- a/st.c Thu Oct 04 22:59:45 2012 +0200
+++ b/st.c Fri Oct 05 09:38:10 2012 +0200
_AT_@ -2234,7 +2234,7 @@
                         winy + font->ascent, (FcChar8 *)s, bytelen);
 
         if(base.mode & ATTR_UNDERLINE) {
- XftDrawRect(xw.xft_draw, fg, winx, winy+1,
+ XftDrawRect(xw.xft_draw, fg, winx, winy + font->ascent + 1,
                                 width, 1);
         }
 }
Received on Fri Oct 05 2012 - 09:40:48 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 05 2012 - 09:48:16 CEST