changeset 106216:63bf64653ed3

(x_new_font): Update f->scroll_bar_actual_width.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Tue, 24 Nov 2009 08:37:40 +0000
parents da3ca3481c0b
children eae8732dcc16
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Nov 24 08:37:32 2009 +0000
+++ b/src/xterm.c	Tue Nov 24 08:37:40 2009 +0000
@@ -8070,6 +8070,10 @@
           pixelh -= FRAME_MENUBAR_HEIGHT (f);
 #endif
           rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixelh);
+	  /* Update f->scroll_bar_actual_width because it is used in
+	     FRAME_PIXEL_WIDTH_TO_TEXT_COLS.  */
+	  f->scroll_bar_actual_width
+	    = FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f);
           cols = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, FRAME_PIXEL_WIDTH (f));
           
           change_frame_size (f, rows, cols, 0, 1, 0);