changeset 19027:1171ca6f0281

(x_new_font): Follow the change in x_set_scroll_bar_width and make the scroll bar at least 14 pixels wide.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Jul 1997 18:33:11 +0000
parents db6728252ce2
children f2458ec72074
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Jul 28 18:30:44 1997 +0000
+++ b/src/xterm.c	Mon Jul 28 18:33:11 1997 +0000
@@ -5289,7 +5289,10 @@
       f->scroll_bar_cols = (f->scroll_bar_pixel_width + wid-1) / wid;
     }
   else
-    f->scroll_bar_cols = 2;
+    {
+      int wid = FONT_WIDTH (f->output_data.x->font);
+      f->scroll_bar_cols = (14 + wid - 1) / wid;
+    }
 
   /* Now make the frame display the given font.  */
   if (FRAME_X_WINDOW (f) != 0)