diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-07-28 18:33:11 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-07-28 18:33:11 +0000 |
commit | ca3ae9ff76641a40dc9ba24c4fc49d480e070e68 (patch) | |
tree | 68959260314c34fb258a80f940caa4aabd1a1004 | |
parent | a27fd2291e54beff0a76b1332568b53a39690667 (diff) | |
download | emacs-ca3ae9ff76641a40dc9ba24c4fc49d480e070e68.tar.gz |
(x_new_font): Follow the change in x_set_scroll_bar_width and make the
scroll bar at least 14 pixels wide.
-rw-r--r-- | src/xterm.c | 5 |
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) 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) |