diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2020-01-02 21:15:46 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-01-03 08:59:49 +0100 |
commit | e4325044a8839cd09f34e5fd73e7f0ce01fcd986 (patch) | |
tree | 7316a18584df9dad63e58ed83a38ca0c4c6bbb86 /source/a/dialog/dialog.no.aspect.ratio.autoajust.patch | |
parent | 28ca6fabe4f11e839f66810fb111ae094e9aa79c (diff) | |
download | current-e4325044a8839cd09f34e5fd73e7f0ce01fcd986.tar.gz current-e4325044a8839cd09f34e5fd73e7f0ce01fcd986.tar.xz |
Thu Jan 2 21:15:46 UTC 202020200102211546
a/dialog-1.3_20191210-x86_64-1.txz: Upgraded.
a/shadow-4.8-x86_64-2.txz: Rebuilt.
Don't ship /etc/environment.new since sudo is no longer complaining about it.
ap/lxc-2.0.11_fad08f383-x86_64-4.txz: Rebuilt.
Make sure all initial devices are properly created.
Fix accidental handling of rc.lxc as a modified-for-lxc init script.
Thanks to crts.
d/python-setuptools-44.0.0-x86_64-1.txz: Upgraded.
l/libedit-20191231_3.1-x86_64-1.txz: Upgraded.
l/python-pillow-7.0.0-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/dialog/dialog.no.aspect.ratio.autoajust.patch')
-rw-r--r-- | source/a/dialog/dialog.no.aspect.ratio.autoajust.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/source/a/dialog/dialog.no.aspect.ratio.autoajust.patch b/source/a/dialog/dialog.no.aspect.ratio.autoajust.patch new file mode 100644 index 000000000..7bce97b80 --- /dev/null +++ b/source/a/dialog/dialog.no.aspect.ratio.autoajust.patch @@ -0,0 +1,31 @@ +--- ./util.c.orig 2019-11-10 17:20:58.000000000 -0600 ++++ ./util.c 2019-12-07 14:40:23.404722986 -0600 +@@ -1237,28 +1237,6 @@ + justify_text((WINDOW *) 0, prompt, max_y, max_x, &high, &wide); + car = (float) (wide / high); + +- /* +- * If the aspect ratio is greater than it should be, then decrease the +- * width proportionately. +- */ +- if (car > ar) { +- float diff = car / (float) ar; +- max_x = (int) ((float) wide / diff + 4); +- justify_text((WINDOW *) 0, prompt, max_y, max_x, &high, &wide); +- car = (float) wide / (float) high; +- } +- +- /* +- * If the aspect ratio is too small after decreasing the width, then +- * incrementally increase the width until the aspect ratio is equal to or +- * greater than the specified aspect ratio. +- */ +- while (car < ar && max_x < max_width) { +- max_x += 4; +- justify_text((WINDOW *) 0, prompt, max_y, max_x, &high, &wide); +- car = (float) (wide / high); +- } +- + *height = high; + *width = wide; + } |