Mercurial > emacs
changeset 17629:fa92ac645cf0
(x_set_scroll_bar_width): If arg is too small, round it up.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 03 May 1997 06:13:30 +0000 |
parents | 0b6db83d4663 |
children | de5770c149d9 |
files | src/xfns.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Sat May 03 06:12:28 1997 +0000 +++ b/src/xfns.c Sat May 03 06:13:30 1997 +0000 @@ -2004,8 +2004,8 @@ { int wid = FONT_WIDTH (f->output_data.x->font); - if (XFASTINT (arg) < 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM) - Fsignal (Qargs_out_of_range, Fcons (arg, Qnil)); + if (XFASTINT (arg) <= 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM) + XSETINT (arg, 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM + 1); FRAME_SCROLL_BAR_PIXEL_WIDTH (f) = XFASTINT (arg); FRAME_SCROLL_BAR_COLS (f) = (XFASTINT (arg) + wid-1) / wid;