[wiki] [sites] Ported to version 0.8.3. || Francesco Minnocci

From: <git_AT_suckless.org>
Date: Sun, 24 May 2020 18:44:49 +0200

commit 844b7d49d656dd1c3e3abb8108b27c609f16535e
Author: Francesco Minnocci <ad17fmin_AT_uwcad.it>
Date: Sun May 24 18:44:31 2020 +0200

    Ported to version 0.8.3.

diff --git a/st.suckless.org/patches/relativeborder/index.md b/st.suckless.org/patches/relativeborder/index.md
index 6948d3f3..8f5f76f7 100644
--- a/st.suckless.org/patches/relativeborder/index.md
+++ b/st.suckless.org/patches/relativeborder/index.md
_AT_@ -14,7 +14,9 @@ of a cell in the terminal.
 Download
 --------
 * [st-relativeborder-20171207-0ac685f.diff](st-relativeborder-20171207-0ac685f.diff)
+* [st-relativeborder-0.8.3.diff](st-relativeborder-0.8.3.diff)
 
 Authors
 -------
 * Doug Whiteley - <dougwhiteley_AT_gmail.com>
+* Francesco Minnocci - <ad17fmin_AT_uwcad.it> (0.8.3 port)
diff --git a/st.suckless.org/patches/relativeborder/st-relativeborder-0.8.3.diff b/st.suckless.org/patches/relativeborder/st-relativeborder-0.8.3.diff
new file mode 100644
index 00000000..55839d22
--- /dev/null
+++ b/st.suckless.org/patches/relativeborder/st-relativeborder-0.8.3.diff
_AT_@ -0,0 +1,39 @@
+diff -up ../st-0.8.3/config.def.h ./config.def.h
+--- ../st-0.8.3/config.def.h 2020-04-27 13:58:27.000000000 +0200
++++ ./config.def.h 2020-05-24 18:27:19.179361165 +0200
+_AT_@ -4,9 +4,11 @@
+ * appearance
+ *
+ * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
++ * borderperc: percentage of cell width to use as a border
++ * 0 = no border, 100 = border width is same as cell width
+ */
+ static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
+-static int borderpx = 2;
++static int borderperc = 20;
+
+ /*
+ * What program is execed by st depends of these precedence rules:
+diff -up ../st-0.8.3/st.h ./st.h
+--- ../st-0.8.3/st.h 2020-04-27 13:58:27.000000000 +0200
++++ ./st.h 2020-05-24 18:27:20.255369735 +0200
+_AT_@ -52,6 +52,7 @@ enum selection_snap {
+ SNAP_LINE = 2
+ };
+
++int borderpx;
+ typedef unsigned char uchar;
+ typedef unsigned int uint;
+ typedef unsigned long ulong;
+diff -up ../st-0.8.3/x.c ./x.c
+--- ../st-0.8.3/x.c 2020-04-27 13:58:27.000000000 +0200
++++ ./x.c 2020-05-24 18:27:17.551348200 +0200
+_AT_@ -1001,6 +1001,8 @@ xloadfonts(char *fontstr, double fontsiz
+ win.cw = ceilf(dc.font.width * cwscale);
+ win.ch = ceilf(dc.font.height * chscale);
+
++ borderpx = ceilf(((float)borderperc / 100) * win.cw);
++
+ FcPatternDel(pattern, FC_SLANT);
+ FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
+ if (xloadfont(&dc.ifont, pattern))
Received on Sun May 24 2020 - 18:44:49 CEST

This archive was generated by hypermail 2.3.0 : Sun May 24 2020 - 18:48:51 CEST