--- rxvt-unicode/src/scrollbar-rxvt.C 2006/01/16 18:10:07 1.24 +++ rxvt-unicode/src/scrollbar-rxvt.C 2006/01/25 21:09:21 1.25 @@ -40,10 +40,10 @@ for (; shadow-- > 0; x++, y++, w--, h--) { - XDrawLine (term->display->display, term->scrollBar.win, term->topShadowGC, x, y, w, y); - XDrawLine (term->display->display, term->scrollBar.win, term->topShadowGC, x, y, x, h); - XDrawLine (term->display->display, term->scrollBar.win, term->botShadowGC, w, h, w, y + 1); - XDrawLine (term->display->display, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h); + XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, w, y); + XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, x, h); + XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, w, y + 1); + XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h); } } @@ -87,17 +87,17 @@ pt[2].y = y + sz - 1; } - XFillPolygon (term->display->display, term->scrollBar.win, term->scrollbarGC, + XFillPolygon (term->xdisp, term->scrollBar.win, term->scrollbarGC, pt, 3, Convex, CoordModeOrigin); /* draw base */ - XDrawLine (term->display->display, term->scrollBar.win, (dirn == UP ? bot : top), + XDrawLine (term->xdisp, term->scrollBar.win, (dirn == UP ? bot : top), pt[0].x, pt[0].y, pt[1].x, pt[1].y); /* draw shadow on left */ pt[1].x = x + sz2 - 1; pt[1].y = y + (dirn == UP ? 0 : sz - 1); - XDrawLine (term->display->display, term->scrollBar.win, top, + XDrawLine (term->xdisp, term->scrollBar.win, top, pt[0].x, pt[0].y, pt[1].x, pt[1].y); #if SHADOW_WIDTH > 1 @@ -115,7 +115,7 @@ pt[1].y--; } - XDrawLine (term->display->display, term->scrollBar.win, top, + XDrawLine (term->xdisp, term->scrollBar.win, top, pt[0].x, pt[0].y, pt[1].x, pt[1].y); #endif @@ -124,7 +124,7 @@ /* pt[2].x = x + sz2; */ pt[1].y = y + (dirn == UP ? sz - 1 : 0); pt[2].y = y + (dirn == UP ? 0 : sz - 1); - XDrawLine (term->display->display, term->scrollBar.win, bot, + XDrawLine (term->xdisp, term->scrollBar.win, bot, pt[2].x, pt[2].y, pt[1].x, pt[1].y); #if SHADOW_WIDTH > 1 @@ -141,7 +141,7 @@ pt[1].y++; } - XDrawLine (term->display->display, term->scrollBar.win, bot, + XDrawLine (term->xdisp, term->scrollBar.win, bot, pt[2].x, pt[2].y, pt[1].x, pt[1].y); #endif } @@ -158,8 +158,8 @@ if (sbshadow) { - XSetWindowBackground (display->display, scrollBar.win, pix_colors_focused[Color_trough]); - XClearWindow (display->display, scrollBar.win); + XSetWindowBackground (xdisp, scrollBar.win, pix_colors_focused[Color_trough]); + XClearWindow (xdisp, scrollBar.win); } } else @@ -167,19 +167,19 @@ if (update) { if (last_top < scrollBar.top) - XClearArea (display->display, scrollBar.win, + XClearArea (xdisp, scrollBar.win, sbshadow, last_top, sbwidth, (scrollBar.top - last_top), False); if (scrollBar.bot < last_bot) - XClearArea (display->display, scrollBar.win, + XClearArea (xdisp, scrollBar.win, sbshadow, scrollBar.bot, sbwidth, (last_bot - scrollBar.bot), False); } else - XClearWindow (display->display, scrollBar.win); + XClearWindow (xdisp, scrollBar.win); } /* scrollbar slider */ @@ -192,12 +192,12 @@ else xofs = sbshadow ? sbwidth : sbwidth - 1; - XDrawLine (display->display, scrollBar.win, botShadowGC, + XDrawLine (xdisp, scrollBar.win, botShadowGC, xofs, 0, xofs, scrollBar.end + sbwidth); } #endif - XFillRectangle (display->display, scrollBar.win, scrollbarGC, + XFillRectangle (xdisp, scrollBar.win, scrollbarGC, sbshadow, scrollBar.top, sbwidth, scrollbar_len);