--- rxvt-unicode/src/scrollbar.C 2011/08/22 17:09:46 1.68 +++ rxvt-unicode/src/scrollbar.C 2011/08/26 08:20:43 1.70 @@ -118,10 +118,9 @@ int sb_top = term->view_start - term->top_row; int sb_bot = sb_top + (term->nrow - 1); int sb_len = max (term->nrow - 1 - term->top_row, 1); - int sb_size = (sb_bot - sb_top) * size (); top = beg + (sb_top * size ()) / sb_len; - bot = top + sb_size / sb_len + min_height () + (sb_size % sb_len > 0); + bot = top + ecb_div_ru ((sb_bot - sb_top) * size (), sb_len) + min_height (); /* no change */ if (top == last_top && bot == last_bot @@ -143,9 +142,7 @@ scrollBar_t::setup (rxvt_term *term) { int i; - short width; const char *scrollalign, *scrollstyle, *thickness; - enum sb_style style; this->term = term; scrollalign = term->rs[Rs_scrollBar_align]; @@ -200,9 +197,6 @@ shadow = SHADOW_WIDTH; # endif - this->style = style; - this->width = width; - /* align = R_SB_ALIGN_CENTRE; */ if (scrollalign) {