aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2017-01-27 17:42:51 +0000
committerHans-Nikolai Viessmann2017-01-27 17:42:51 +0000
commit2edfffb89268ea3c6948f4ce02d00d5a3c11c887 (patch)
treebfcb1cf20bdc42c8e3f33509e192f51fb8f1dac8
parentf4d9a62f2ad4ebf566e10e514805454a05064849 (diff)
downloadst-me-2edfffb89268ea3c6948f4ce02d00d5a3c11c887.tar.gz
st-me-2edfffb89268ea3c6948f4ce02d00d5a3c11c887.zip
Non-square DPI value no longer leads to exitHEADextras
-rw-r--r--PKGBUILD6
-rw-r--r--README.md1
-rw-r--r--st.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 45bc5c8..d3411d2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
_pkgname=st-me
pkgname="${_pkgname}-git"
-pkgver=r972.5b67fd9
+pkgver=r976.f4d9a62
pkgrel=1
pkgdesc="This is a custom release of the Suckless Terminal with a few patches and extras"
arch=('x86_64' 'i686')
@@ -23,11 +23,11 @@ md5sums=('896bfea38b9959e5167b56ef76a6ac4b'
'afe2afef8c754a3a8e2cffb05b718614'
'7a809c670214bc5b1440c5885ab7ef47'
'4a06cd509ed479450e36833c6ce2015b'
- 'f521d758e3767f38f1b458c861c13c57'
+ '675068a32d70d2d0688b9656e11f5ecb'
'dcdb3f46c2a7789991b35158e1848b4c'
'f2f4216145a3d3b6e51cb7a7aba36bf0'
'aed0049ea0ae8aa39062f4f5f36acc1d'
- '282bed92d6f4872b606e4a2c48ed5d68')
+ 'a74cb7e514d2d0a5a130651863b7a715')
pkgver() {
## Assume we are in the repo...
diff --git a/README.md b/README.md
index 78e1ce9..ce3218a 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ Main differences with normal branch:
* patched to have scrollback with basic mousewheel function (Shift+Mousewheel)
* patched to support *old schoool* clipboard interaction - in Wayland this does
not work well, yet
+ * fonts now scale to match Xorg screen DPI
* Personalisation of `config.def.h`
diff --git a/st.c b/st.c
index d8f0d83..bac0de9 100644
--- a/st.c
+++ b/st.c
@@ -3683,8 +3683,9 @@ xinit(void)
ddh = (int) (((((double) DisplayHeight(xw.dpy, xw.scr)) * 25.4)
/ ((double) DisplayHeightMM(xw.dpy, xw.scr))) + 0.5);
if (ddw != ddh)
- die("Computed DPI values are not equal (square)\n");
+ fprintf(stderr, "Computed DPI values are not equal (square)\n");
+ /* we always the dpi of screen width */
defaultfontdpi = ddw;
/* font */