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.52 by ayin, Sun Feb 17 11:37:21 2008 UTC vs.
Revision 1.53 by ayin, Sun Feb 17 12:11:56 2008 UTC

149 if (update) 149 if (update)
150 { 150 {
151 top = view_start - top_row; 151 top = view_start - top_row;
152 bot = top + (nrow - 1); 152 bot = top + (nrow - 1);
153 len = max (nrow - 1 - top_row, 1); 153 len = max (nrow - 1 - top_row, 1);
154 adj = (((bot - top) * scrollbar_size ()) % len) > 0 ? 1 : 0; 154 adj = (((bot - top) * scrollBar.size ()) % len) > 0 ? 1 : 0;
155 155
156 scrollBar.top = (scrollBar.beg + (top * scrollbar_size ()) / len); 156 scrollBar.top = (scrollBar.beg + (top * scrollBar.size ()) / len);
157 scrollBar.len = ((bot - top) * scrollbar_size ()) / len + 157 scrollBar.len = ((bot - top) * scrollBar.size ()) / len +
158 scrollbar_minheight () + adj; 158 scrollBar.min_height () + adj;
159 scrollBar.bot = (scrollBar.top + scrollBar.len); 159 scrollBar.bot = (scrollBar.top + scrollBar.len);
160 /* no change */ 160 /* no change */
161 if (scrollBar.top == scrollBar.last_top 161 if (scrollBar.top == scrollBar.last_top
162 && scrollBar.bot == scrollBar.last_bot 162 && scrollBar.bot == scrollBar.last_bot
163 && (scrollBar.state == scrollBar.last_state 163 && (scrollBar.state == scrollBar.last_state

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines