--- rxvt-unicode/src/scrollbar-plain.C 2006/01/31 19:20:59 1.17 +++ rxvt-unicode/src/scrollbar-plain.C 2007/12/29 14:43:44 1.23 @@ -4,7 +4,7 @@ * * Copyright (c) 1997,1998 mj olesen * Copyright (c) 1999-2001 Geoff Wing - * Copyright (c) 2004 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 @@ -40,28 +40,28 @@ scrollBar.init |= R_SB_PLAIN; gcvalue.foreground = pix_colors_focused[Color_scroll]; - pscrollbarGC = XCreateGC (xdisp, scrollBar.win, GCForeground, &gcvalue); + pscrollbarGC = XCreateGC (dpy, scrollBar.win, GCForeground, &gcvalue); } - xsb = OPTION (Opt_scrollBar_right) ? 1 : 0; + xsb = option (Opt_scrollBar_right) ? 1 : 0; if (update) { if (last_top < scrollBar.top) - XClearArea (xdisp, scrollBar.win, - sb_shadow, last_top, - sbwidth + 1, (scrollBar.top - last_top), False); + XClearArea (dpy, scrollBar.win, + scrollBar.shadow, last_top, + sbwidth + 1, scrollBar.top - last_top, False); if (scrollBar.bot < last_bot) - XClearArea (xdisp, scrollBar.win, - sb_shadow, scrollBar.bot, - sbwidth + 1, (last_bot - scrollBar.bot), False); + XClearArea (dpy, scrollBar.win, + scrollBar.shadow, scrollBar.bot, + sbwidth + 1, last_bot - scrollBar.bot, False); } else - XClearWindow (xdisp, scrollBar.win); + XClearWindow (dpy, scrollBar.win); /* scrollbar slider */ - XFillRectangle (xdisp, scrollBar.win, pscrollbarGC, + XFillRectangle (dpy, scrollBar.win, pscrollbarGC, 1 - xsb, scrollBar.top, sbwidth, scrollbar_len); return 1;