diff options
| author | Karl Heuer | 1994-10-02 22:06:26 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-02 22:06:26 +0000 |
| commit | a444c70b513e3e4f5163b21c7ff20c414f7f13af (patch) | |
| tree | 120f62d8bbb489ba2cb4289346a513ec93b70450 /src | |
| parent | d79998bcf9893b0c985909774cb04dedd501444d (diff) | |
| download | emacs-a444c70b513e3e4f5163b21c7ff20c414f7f13af.tar.gz emacs-a444c70b513e3e4f5163b21c7ff20c414f7f13af.zip | |
(x_figure_window_size): Use new formula for scroll bar width.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index 846d636be1e..a2a86ad2869 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1769,9 +1769,11 @@ x_figure_window_size (f, parms) | |||
| 1769 | } | 1769 | } |
| 1770 | 1770 | ||
| 1771 | f->display.x->vertical_scroll_bar_extra | 1771 | f->display.x->vertical_scroll_bar_extra |
| 1772 | = (FRAME_HAS_VERTICAL_SCROLL_BARS (f) | 1772 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) |
| 1773 | ? 0 | ||
| 1774 | : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0 | ||
| 1773 | ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) | 1775 | ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) |
| 1774 | : 0); | 1776 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->display.x->font))); |
| 1775 | f->display.x->pixel_width = CHAR_TO_PIXEL_WIDTH (f, f->width); | 1777 | f->display.x->pixel_width = CHAR_TO_PIXEL_WIDTH (f, f->width); |
| 1776 | f->display.x->pixel_height = CHAR_TO_PIXEL_HEIGHT (f, f->height); | 1778 | f->display.x->pixel_height = CHAR_TO_PIXEL_HEIGHT (f, f->height); |
| 1777 | 1779 | ||