… | |
… | |
58 | Display *dpy = sb->term->dpy; |
58 | Display *dpy = sb->term->dpy; |
59 | |
59 | |
60 | sz = sb->width; |
60 | sz = sb->width; |
61 | sz2 = sz / 2; |
61 | sz2 = sz / 2; |
62 | |
62 | |
63 | if ((dirn == UP && sb->state == STATE_UP) |
63 | if ((dirn == UP && sb->state == SB_STATE_UP) |
64 | || (dirn == DN && sb->state == STATE_DOWN)) |
64 | || (dirn == DN && sb->state == SB_STATE_DOWN)) |
65 | { |
65 | { |
66 | top = sb->botShadowGC; |
66 | top = sb->botShadowGC; |
67 | bot = sb->topShadowGC; |
67 | bot = sb->topShadowGC; |
68 | } |
68 | } |
69 | else |
69 | else |
… | |
… | |
150 | int |
150 | int |
151 | scrollBar_t::show_rxvt (int update) |
151 | scrollBar_t::show_rxvt (int update) |
152 | { |
152 | { |
153 | int sbwidth = (int)width; |
153 | int sbwidth = (int)width; |
154 | |
154 | |
155 | if ((init & R_SB_RXVT) == 0) |
155 | if ((init & SB_STYLE_RXVT) == 0) |
156 | { |
156 | { |
157 | XGCValues gcvalue; |
157 | XGCValues gcvalue; |
158 | |
158 | |
159 | init |= R_SB_RXVT; |
159 | init |= SB_STYLE_RXVT; |
160 | |
160 | |
161 | gcvalue.foreground = term->pix_colors[Color_topShadow]; |
161 | gcvalue.foreground = term->pix_colors[Color_topShadow]; |
162 | topShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
162 | topShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
163 | gcvalue.foreground = term->pix_colors[Color_bottomShadow]; |
163 | gcvalue.foreground = term->pix_colors[Color_bottomShadow]; |
164 | botShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
164 | botShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |