--- rxvt-unicode/src/scrollbar-rxvt.C 2004/08/23 19:57:33 1.16 +++ rxvt-unicode/src/scrollbar-rxvt.C 2005/12/31 17:16:17 1.19 @@ -83,6 +83,7 @@ #if (SHADOW > 1) /* doubled */ pt[0].x++; + if (dirn == UP) { pt[0].y--; @@ -93,6 +94,7 @@ pt[0].y++; pt[1].y--; } + XDrawLine (display->display, scrollBar.win, top, pt[0].x, pt[0].y, pt[1].x, pt[1].y); #endif @@ -103,6 +105,7 @@ pt[2].y = y + (dirn == UP ? 0 : sz - 1); XDrawLine (display->display, scrollBar.win, bot, pt[2].x, pt[2].y, pt[1].x, pt[1].y); + #if (SHADOW > 1) /* doubled */ pt[1].x--; @@ -131,6 +134,7 @@ if ((scrollBar.init & R_SB_RXVT) == 0) { scrollBar.init |= R_SB_RXVT; + if (sbshadow) { XSetWindowBackground (display->display, scrollBar.win, pix_colors_focused[Color_trough]); @@ -162,7 +166,7 @@ { int xofs; - if (options & Opt_scrollBar_right) + if (OPTION (Opt_scrollBar_right)) xofs = 0; else xofs = sbshadow ? sbwidth : sbwidth - 1; @@ -198,3 +202,4 @@ } #endif /* RXVT_SCROLLBAR */ /*----------------------- end-of-file (C source) -----------------------*/ +