--- rxvt-unicode/src/scrollbar.C 2005/12/31 17:16:17 1.28 +++ rxvt-unicode/src/scrollbar.C 2006/01/15 06:02:41 1.30 @@ -155,9 +155,9 @@ if (update) { - top = nsaved - view_start; + top = view_start - top_row; bot = top + (nrow - 1); - len = max (nsaved + (nrow - 1), 1); + len = max (nrow - 1 - top_row, 1); adj = (((bot - top) * scrollbar_size ()) % len) > 0 ? 1 : 0; scrollBar.top = (scrollBar.beg + (top * scrollbar_size ()) / len); @@ -233,7 +233,7 @@ # if defined(RXVT_SCROLLBAR) if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT) - sb_shadow = SHADOW; + sb_shadow = MENU_SHADOW; # endif scrollBar.style = style;