[hackers] [st] Fixing bold fonts in reverse mode. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sat, 3 Nov 2012 18:22:53 +0100 (CET)

changeset: 382:c22d6d6a322d
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sat Nov 03 13:43:20 2012 +0100
files: st.c
description:
Fixing bold fonts in reverse mode.


diff -r ba28aa0d864d -r c22d6d6a322d st.c
--- a/st.c Sat Nov 03 08:35:32 2012 +0100
+++ b/st.c Sat Nov 03 13:43:20 2012 +0100
_AT_@ -2398,9 +2398,6 @@
                  *temp, revfg, revbg;
         XRenderColor colfg, colbg;
 
- if(base.mode & ATTR_REVERSE)
- temp = fg, fg = bg, bg = temp;
-
         if(base.mode & ATTR_BOLD) {
                 if(BETWEEN(base.fg, 0, 7)) {
                         /* basic system colors */
_AT_@ -2450,6 +2447,9 @@
                 }
         }
 
+ if(base.mode & ATTR_REVERSE)
+ temp = fg, fg = bg, bg = temp;
+
         XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen,
                         &extents);
         width = extents.xOff;
Received on Sat Nov 03 2012 - 18:22:53 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 03 2012 - 18:24:07 CET