Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xinit/dist More DPI magic... allow most moder...



details:   https://anonhg.NetBSD.org/xsrc/rev/c81a19466e07
branches:  trunk
changeset: 6981:c81a19466e07
user:      nia <nia%NetBSD.org@localhost>
date:      Fri May 27 17:58:54 2022 +0000

description:
More DPI magic... allow most modern GTK and Qt apps to automatically scale

diffstat:

 external/mit/xdm/dist/config/Xsession.in |  3 ++-
 external/mit/xinit/dist/xinitrc.cpp      |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r c5f6b6bafaf6 -r c81a19466e07 external/mit/xdm/dist/config/Xsession.in
--- a/external/mit/xdm/dist/config/Xsession.in  Fri May 27 14:23:23 2022 +0000
+++ b/external/mit/xdm/dist/config/Xsession.in  Fri May 27 17:58:54 2022 +0000
@@ -1,6 +1,6 @@
 XCOMM!SHELL_CMD
 XCOMM
-XHASH $NetBSD: Xsession.in,v 1.15 2022/05/27 14:23:23 nia Exp $
+XHASH $NetBSD: Xsession.in,v 1.16 2022/05/27 17:58:54 nia Exp $
 
 XCOMM redirect errors to a file in user's home directory if we can
 
@@ -75,6 +75,7 @@
 #ifdef COLOR
 *customization: -color
 #endif
+Xft.dpi: $(/usr/bin/printf '96 * (%d / 16)\n' "$fontsize" | /usr/bin/bc /dev/stdin)
 *VT100.foreground: grey90
 *VT100.background: black
 Bitmap*font:    -*-spleen-medium-r-*-*-$fontsize-*-*-*-*-*-*-*
diff -r c5f6b6bafaf6 -r c81a19466e07 external/mit/xinit/dist/xinitrc.cpp
--- a/external/mit/xinit/dist/xinitrc.cpp       Fri May 27 14:23:23 2022 +0000
+++ b/external/mit/xinit/dist/xinitrc.cpp       Fri May 27 17:58:54 2022 +0000
@@ -1,5 +1,5 @@
 XCOMM!SHELL_CMD
-XHASH $NetBSD: xinitrc.cpp,v 1.17 2022/05/27 14:23:23 nia Exp $
+XHASH $NetBSD: xinitrc.cpp,v 1.18 2022/05/27 17:58:54 nia Exp $
 
 userresources=$HOME/.Xresources
 usermodmap=$HOME/.Xmodmap
@@ -44,6 +44,7 @@
 XHASH ifdef COLOR
 *customization: -color
 XHASH endif
+Xft.dpi: $(/usr/bin/printf '96 * (%d / 16)\n' "$fontsize" | /usr/bin/bc /dev/stdin)
 *VT100.foreground: grey90
 *VT100.background: black
 *SimpleMenu*font:      -*-spleen-medium-r-*-*-$fontsize-*-*-*-*-*-*-*



Home | Main Index | Thread Index | Old Index