comparison src/scrollbar.c @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
867 if (!EQ (value, Qmax)) 867 if (!EQ (value, Qmax))
868 CHECK_INT (value); 868 CHECK_INT (value);
869 869
870 w = XWINDOW (window); 870 w = XWINDOW (window);
871 wcw = window_char_width (w, 0) - 1; 871 wcw = window_char_width (w, 0) - 1;
872 /* ### We should be able to scroll further right as long as there is 872 /* #### We should be able to scroll further right as long as there is
873 a visible truncation glyph. This calculation for max is bogus. */ 873 a visible truncation glyph. This calculation for max is bogus. */
874 max_len = w->max_line_len + 2; 874 max_len = w->max_line_len + 2;
875 875
876 if (EQ (value, Qmax) || (XINT (value) > (max_len - wcw))) 876 if (EQ (value, Qmax) || (XINT (value) > (max_len - wcw)))
877 hscroll = max_len - wcw; 877 hscroll = max_len - wcw;