… | |
… | |
59 | ShadowGC = XCreateGC (dpy, scrollBar.win, GCForeground, &gcvalue); |
59 | ShadowGC = XCreateGC (dpy, scrollBar.win, GCForeground, &gcvalue); |
60 | } |
60 | } |
61 | |
61 | |
62 | if (update) |
62 | if (update) |
63 | { |
63 | { |
64 | xsb = OPTION (Opt_scrollBar_right) ? 1 : 0; |
64 | xsb = option (Opt_scrollBar_right) ? 1 : 0; |
65 | if (last_top < scrollBar.top) |
65 | if (last_top < scrollBar.top) |
66 | XClearArea (dpy, scrollBar.win, |
66 | XClearArea (dpy, scrollBar.win, |
67 | sb_shadow + xsb, last_top, |
67 | sb_shadow + xsb, last_top, |
68 | sbwidth, (scrollBar.top - last_top), False); |
68 | sbwidth, (scrollBar.top - last_top), False); |
69 | |
69 | |
… | |
… | |
82 | XDrawLine (dpy, scrollBar.win, ShadowGC, |
82 | XDrawLine (dpy, scrollBar.win, ShadowGC, |
83 | xsb ? 0 : sbwidth, scrollBar.beg, |
83 | xsb ? 0 : sbwidth, scrollBar.beg, |
84 | xsb ? 0 : sbwidth, scrollBar.end); |
84 | xsb ? 0 : sbwidth, scrollBar.end); |
85 | return 1; |
85 | return 1; |
86 | } |
86 | } |
87 | #endif /* XTERM_SCROLLBAR */ |
87 | #endif /* XTERM_SCROLLBAR */ |
88 | /*----------------------- end-of-file (C source) -----------------------*/ |
88 | /*----------------------- end-of-file (C source) -----------------------*/ |