mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Fixing bold fonts in reverse mode.
This commit is contained in:
parent
76a8e5f72b
commit
f8db65439a
1 changed files with 3 additions and 3 deletions
6
st.c
6
st.c
|
@ -2398,9 +2398,6 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
|
||||||
*temp, revfg, revbg;
|
*temp, revfg, revbg;
|
||||||
XRenderColor colfg, colbg;
|
XRenderColor colfg, colbg;
|
||||||
|
|
||||||
if(base.mode & ATTR_REVERSE)
|
|
||||||
temp = fg, fg = bg, bg = temp;
|
|
||||||
|
|
||||||
if(base.mode & ATTR_BOLD) {
|
if(base.mode & ATTR_BOLD) {
|
||||||
if(BETWEEN(base.fg, 0, 7)) {
|
if(BETWEEN(base.fg, 0, 7)) {
|
||||||
/* basic system colors */
|
/* basic system colors */
|
||||||
|
@ -2450,6 +2447,9 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(base.mode & ATTR_REVERSE)
|
||||||
|
temp = fg, fg = bg, bg = temp;
|
||||||
|
|
||||||
XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen,
|
XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen,
|
||||||
&extents);
|
&extents);
|
||||||
width = extents.xOff;
|
width = extents.xOff;
|
||||||
|
|
Loading…
Reference in a new issue