--- rxvt-unicode/src/scrollbar-rxvt.C 2005/02/04 11:41:23 1.17 +++ rxvt-unicode/src/scrollbar-rxvt.C 2006/01/03 02:43:33 1.20 @@ -27,7 +27,7 @@ /*----------------------------------------------------------------------*/ #if defined(RXVT_SCROLLBAR) -/* draw triangular button with a shadow of SHADOW (1 or 2) pixels */ +/* draw triangular button with a shadow of MENU_SHADOW (1 or 2) pixels */ void rxvt_term::Draw_button (int x, int y, int state, int dirn) { @@ -80,7 +80,7 @@ XDrawLine (display->display, scrollBar.win, top, pt[0].x, pt[0].y, pt[1].x, pt[1].y); -#if (SHADOW > 1) +#if (MENU_SHADOW > 1) /* doubled */ pt[0].x++; @@ -106,7 +106,7 @@ XDrawLine (display->display, scrollBar.win, bot, pt[2].x, pt[2].y, pt[1].x, pt[1].y); -#if (SHADOW > 1) +#if (MENU_SHADOW > 1) /* doubled */ pt[1].x--; if (dirn == UP) @@ -134,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]); @@ -165,7 +166,7 @@ { int xofs; - if (options & Opt_scrollBar_right) + if (OPTION (Opt_scrollBar_right)) xofs = 0; else xofs = sbshadow ? sbwidth : sbwidth - 1; @@ -201,3 +202,4 @@ } #endif /* RXVT_SCROLLBAR */ /*----------------------- end-of-file (C source) -----------------------*/ +