ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/scrollbar.C
(Generate patch)

Comparing rxvt-unicode/src/scrollbar.C (file contents):
Revision 1.68 by sf-exg, Mon Aug 22 17:09:46 2011 UTC vs.
Revision 1.69 by sf-exg, Thu Aug 25 18:01:28 2011 UTC

116 if (refresh) 116 if (refresh)
117 { 117 {
118 int sb_top = term->view_start - term->top_row; 118 int sb_top = term->view_start - term->top_row;
119 int sb_bot = sb_top + (term->nrow - 1); 119 int sb_bot = sb_top + (term->nrow - 1);
120 int sb_len = max (term->nrow - 1 - term->top_row, 1); 120 int sb_len = max (term->nrow - 1 - term->top_row, 1);
121 int sb_size = (sb_bot - sb_top) * size ();
122 121
123 top = beg + (sb_top * size ()) / sb_len; 122 top = beg + (sb_top * size ()) / sb_len;
124 bot = top + sb_size / sb_len + min_height () + (sb_size % sb_len > 0); 123 bot = top + ecb_div_ru ((sb_bot - sb_top) * size (), sb_len) + min_height ();
125 /* no change */ 124 /* no change */
126 if (top == last_top 125 if (top == last_top
127 && bot == last_bot 126 && bot == last_bot
128 && (state == last_state 127 && (state == last_state
129 || !(state == STATE_UP || state == STATE_DOWN))) 128 || !(state == STATE_UP || state == STATE_DOWN)))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines