summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-12-08 20:12:54 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2020-12-08 20:12:54 -0500
commitc0bd976881f7d77e052e8b6c92bb80f3c376e825 (patch)
treefcd7d9f97814619ef94ad5f177c1d2cb53a16cae /x.c
parentbc28a24ca5eb34712d679118e5856c3d574a3df3 (diff)
Current st configuration
Diffstat (limited to 'x.c')
-rw-r--r--x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x.c b/x.c
index c09392b..7fdf546 100644
--- a/x.c
+++ b/x.c
@@ -1008,6 +1008,8 @@ xloadfonts(char *fontstr, double fontsize)
win.ch = ceilf(dc.font.height * chscale);
win.cyo = ceilf(dc.font.height * (chscale - 1) / 2);
+ borderpx = ceilf(((float)borderperc / 100) * win.cw);
+
FcPatternDel(pattern, FC_SLANT);
FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
if (xloadfont(&dc.ifont, pattern))