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 Expand and escape comments. One mi...



details:   https://anonhg.NetBSD.org/xsrc/rev/79212929a2ab
branches:  trunk
changeset: 6987:79212929a2ab
user:      nia <nia%NetBSD.org@localhost>
date:      Sun May 29 12:40:36 2022 +0000

description:
Expand and escape comments. One minor change to variable expansion
as requested by uwe.

diffstat:

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

diffs (101 lines):

diff -r 5cfaf9784372 -r 79212929a2ab external/mit/xdm/dist/config/Xsession.in
--- a/external/mit/xdm/dist/config/Xsession.in  Sun May 29 06:06:13 2022 +0000
+++ b/external/mit/xdm/dist/config/Xsession.in  Sun May 29 12:40:36 2022 +0000
@@ -1,6 +1,6 @@
 XCOMM!SHELL_CMD
 XCOMM
-XHASH $NetBSD: Xsession.in,v 1.19 2022/05/29 06:06:14 nia Exp $
+XHASH $NetBSD: Xsession.in,v 1.20 2022/05/29 12:40:36 nia Exp $
 
 XCOMM redirect errors to a file in user's home directory if we can
 
@@ -93,23 +93,26 @@
 Xmh*font:       -*-spleen-medium-r-*-*-$fontsize-*-*-*-*-*-*-*
 EOF
 if [ $fontsize -gt 18 ]; then
-#
-# For HiDPI displays, the font size returned by ctwm_font_size will
-# generally be a multiple of 16.  96 is our standard DPI, and many
-# applications want to scale by integer increments or don't handle
-# non-integer scaling gracefully, so we want to scale by multiples
-# of 96.
-# 
+XCOMM
+XCOMM For HiDPI displays, the font size returned by ctwm_font_size will
+XCOMM generally be a multiple of 16.  96 is our standard DPI, and many
+XCOMM applications want to scale by integer increments or don't handle
+XCOMM non-integer scaling gracefully, so we want to scale by multiples
+XCOMM of 96.
+XCOMM 
     BINDIR/xrdb -merge - <<EOF
-Xft.dpi: $((96 * ($fontsize / 16)))
+Xft.dpi: $((96 * (fontsize / 16)))
 *VT100.faceName: xft:Monospace:pixelsize=$fontsize
 EOF
 elif [ $fontsize -gt 13 ]; then
-#
-# For non-HiDPI cases, use the standard misc-fixed font in xterm
-# since it has bold variants, and seems to have caused fewer
-# complaints than alternatives in the community so far.
-#
+XCOMM
+XCOMM For non-HiDPI cases, use the standard misc-fixed font in xterm
+XCOMM since it has bold variants, and seems to have caused fewer
+XCOMM complaints than alternatives in the community so far.
+XCOMM
+XCOMM Using bitmap instead of TrueType fonts offers us some minor
+XCOMM performance gains on very slow machines.
+XCOMM
     BINDIR/xrdb -merge - <<EOF
 *VT100.font: -misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1
 *VT100.fontBold: -misc-fixed-bold-r-normal-*-18-*-*-*-*-*-iso10646-1
diff -r 5cfaf9784372 -r 79212929a2ab external/mit/xinit/dist/xinitrc.cpp
--- a/external/mit/xinit/dist/xinitrc.cpp       Sun May 29 06:06:13 2022 +0000
+++ b/external/mit/xinit/dist/xinitrc.cpp       Sun May 29 12:40:36 2022 +0000
@@ -1,5 +1,5 @@
 XCOMM!SHELL_CMD
-XHASH $NetBSD: xinitrc.cpp,v 1.21 2022/05/29 06:06:13 nia Exp $
+XHASH $NetBSD: xinitrc.cpp,v 1.22 2022/05/29 12:40:36 nia Exp $
 
 userresources=$HOME/.Xresources
 usermodmap=$HOME/.Xmodmap
@@ -64,23 +64,26 @@
 Xmh*font:       -*-spleen-medium-r-*-*-$fontsize-*-*-*-*-*-*-*
 EOF
 if [ $fontsize -gt 18 ]; then
-#
-# For HiDPI displays, the font size returned by ctwm_font_size will
-# generally be a multiple of 16.  96 is our standard DPI, and many
-# applications want to scale by integer increments or don't handle
-# non-integer scaling gracefully, so we want to scale by multiples
-# of 96.
-# 
+XCOMM
+XCOMM For HiDPI displays, the font size returned by ctwm_font_size will
+XCOMM generally be a multiple of 16.  96 is our standard DPI, and many
+XCOMM applications want to scale by integer increments or don't handle
+XCOMM non-integer scaling gracefully, so we want to scale by multiples
+XCOMM of 96.
+XCOMM
     XRDB -merge - <<EOF
-Xft.dpi: $((96 * ($fontsize / 16)))
+Xft.dpi: $((96 * (fontsize / 16)))
 *VT100.faceName: xft:Monospace:pixelsize=$fontsize
 EOF
 elif [ $fontsize -gt 13 ]; then
-#
-# For non-HiDPI cases, use the standard misc-fixed font in xterm
-# since it has bold variants, and seems to have caused fewer
-# complaints than alternatives in the community so far.
-#
+XCOMM
+XCOMM For non-HiDPI cases, use the standard misc-fixed font in xterm
+XCOMM since it has bold variants, and seems to have caused fewer
+XCOMM complaints than alternatives in the community so far.
+XCOMM
+XCOMM Using bitmap instead of TrueType fonts offers us some minor
+XCOMM performance gains on very slow machines.
+XCOMM
     XRDB -merge - <<EOF
 *VT100.font: -misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1
 *VT100.fontBold: -misc-fixed-bold-r-normal-*-18-*-*-*-*-*-iso10646-1



Home | Main Index | Thread Index | Old Index