mirror of
git://slackware.nl/current.git
synced 2024-11-16 07:48:02 +01:00
e4325044a8
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.
31 lines
992 B
Diff
31 lines
992 B
Diff
--- ./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;
|
|
}
|