--- rxvt-unicode/src/scrollbar-plain.C 2008/02/19 13:01:33 1.25 +++ rxvt-unicode/src/scrollbar-plain.C 2011/09/01 08:11:27 1.28 @@ -4,7 +4,7 @@ * * Copyright (c) 1997,1998 mj olesen * Copyright (c) 1999-2001 Geoff Wing - * Copyright (c) 2004-2006 Marc Lehmann + * Copyright (c) 2004-2006 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,11 +33,11 @@ int xsb = 0; int sbwidth = width - 1; - if ((init & R_SB_PLAIN) == 0) + if ((init & SB_STYLE_PLAIN) == 0) { XGCValues gcvalue; - init |= R_SB_PLAIN; + init |= SB_STYLE_PLAIN; gcvalue.foreground = term->pix_colors_focused[Color_scroll]; pscrollbarGC = XCreateGC (term->dpy, win, GCForeground, &gcvalue); @@ -62,7 +62,7 @@ /* scrollbar slider */ XFillRectangle (term->dpy, win, pscrollbarGC, - 1 - xsb, top, sbwidth, len); + 1 - xsb, top, sbwidth, bot - top); return 1; }