… | |
… | |
21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
22 | *----------------------------------------------------------------------*/ |
22 | *----------------------------------------------------------------------*/ |
23 | |
23 | |
24 | #include "../config.h" /* NECESSARY */ |
24 | #include "../config.h" /* NECESSARY */ |
25 | #include "rxvt.h" /* NECESSARY */ |
25 | #include "rxvt.h" /* NECESSARY */ |
26 | #include "scrollbar-plain.intpro" /* PROTOS for internal routines */ |
|
|
27 | |
26 | |
28 | /*----------------------------------------------------------------------*/ |
27 | /*----------------------------------------------------------------------*/ |
29 | #if defined(PLAIN_SCROLLBAR) |
28 | #if defined(PLAIN_SCROLLBAR) |
30 | |
29 | |
31 | int |
30 | int |
… | |
… | |
37 | if ((scrollBar.init & R_SB_PLAIN) == 0) |
36 | if ((scrollBar.init & R_SB_PLAIN) == 0) |
38 | { |
37 | { |
39 | XGCValues gcvalue; |
38 | XGCValues gcvalue; |
40 | |
39 | |
41 | scrollBar.init |= R_SB_PLAIN; |
40 | scrollBar.init |= R_SB_PLAIN; |
42 | gcvalue.foreground = PixColors[Color_fg]; |
41 | gcvalue.foreground = pix_colors[Color_fg]; |
43 | gcvalue.background = PixColors[Color_bg]; |
42 | gcvalue.background = pix_colors[Color_bg]; |
44 | |
43 | |
45 | pscrollbarGC = XCreateGC (display->display, scrollBar.win, |
44 | pscrollbarGC = XCreateGC (display->display, scrollBar.win, |
46 | GCForeground | GCBackground, &gcvalue); |
45 | GCForeground | GCBackground, &gcvalue); |
47 | } |
46 | } |
48 | /* instead of XClearWindow (display->display, scrollBar.win); */ |
47 | /* instead of XClearWindow (display->display, scrollBar.win); */ |
49 | xsb = (Options & Opt_scrollBar_right) ? 1 : 0; |
48 | xsb = (options & Opt_scrollBar_right) ? 1 : 0; |
50 | if (last_top < scrollBar.top) |
49 | if (last_top < scrollBar.top) |
51 | XClearArea (display->display, scrollBar.win, |
50 | XClearArea (display->display, scrollBar.win, |
52 | sb_shadow + xsb, last_top, |
51 | sb_shadow + xsb, last_top, |
53 | sbwidth + 1, (scrollBar.top - last_top), False); |
52 | sbwidth + 1, (scrollBar.top - last_top), False); |
54 | |
53 | |