mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 20:30:32 -08:00
(x_new_font): Follow the change in x_set_scroll_bar_width and make the
scroll bar at least 14 pixels wide.
This commit is contained in:
parent
0ecca02337
commit
4e61bddf04
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue