changeset 9240:60497ceed71a

(x_figure_window_size): Use new formula for scroll bar width.
author Karl Heuer <kwzh@gnu.org>
date Sun, 02 Oct 1994 22:06:26 +0000
parents d4ad53f37cc7
children a309baaa249f
files src/xfns.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Oct 02 21:51:57 1994 +0000
+++ b/src/xfns.c	Sun Oct 02 22:06:26 1994 +0000
@@ -1769,9 +1769,11 @@
     }
 
   f->display.x->vertical_scroll_bar_extra
-    = (FRAME_HAS_VERTICAL_SCROLL_BARS (f)
+    = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f)
+       ? 0
+       : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0
        ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f)
-       : 0);
+       : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->display.x->font)));
   f->display.x->pixel_width = CHAR_TO_PIXEL_WIDTH (f, f->width);
   f->display.x->pixel_height = CHAR_TO_PIXEL_HEIGHT (f, f->height);