aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-28 18:33:11 +0000
committerRichard M. Stallman1997-07-28 18:33:11 +0000
commit4e61bddf045f4252cfbed088afb45917f44dcf06 (patch)
tree8f13c9da62369223793051f20639d0c3ab8c29d7 /src
parent0ecca023375fb01b3bd31c63cf9f57a90f5d683c (diff)
downloademacs-4e61bddf045f4252cfbed088afb45917f44dcf06.tar.gz
emacs-4e61bddf045f4252cfbed088afb45917f44dcf06.zip
(x_new_font): Follow the change in x_set_scroll_bar_width and make the
scroll bar at least 14 pixels wide.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index cc29cf915a7..62ea22abeee 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5289,7 +5289,10 @@ x_new_font (f, fontname)
5289 f->scroll_bar_cols = (f->scroll_bar_pixel_width + wid-1) / wid; 5289 f->scroll_bar_cols = (f->scroll_bar_pixel_width + wid-1) / wid;
5290 } 5290 }
5291 else 5291 else
5292 f->scroll_bar_cols = 2; 5292 {
5293 int wid = FONT_WIDTH (f->output_data.x->font);
5294 f->scroll_bar_cols = (14 + wid - 1) / wid;
5295 }
5293 5296
5294 /* Now make the frame display the given font. */ 5297 /* Now make the frame display the given font. */
5295 if (FRAME_X_WINDOW (f) != 0) 5298 if (FRAME_X_WINDOW (f) != 0)