Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/scrollbar-plain.C 2013-11-08 16:01:14.605501622 +0400
- +++ b/src/scrollbar-plain.C 2013-11-08 16:01:33.569128136 +0400
- @@ -30,9 +30,6 @@
- int
- scrollBar_t::show_plain (int update)
- {
- - int xsb = 0;
- - int sbwidth = width - 1;
- -
- if ((init & SB_STYLE_PLAIN) == 0)
- {
- XGCValues gcvalue;
- @@ -43,26 +40,24 @@
- pscrollbarGC = XCreateGC (term->dpy, win, GCForeground, &gcvalue);
- }
- - xsb = term->option (Opt_scrollBar_right) ? 1 : 0;
- -
- if (update)
- {
- if (last_top < top)
- XClearArea (term->dpy, win,
- 0, last_top,
- - sbwidth + 1, top - last_top, False);
- + width, top - last_top, False);
- if (bot < last_bot)
- XClearArea (term->dpy, win,
- 0, bot,
- - sbwidth + 1, last_bot - bot, False);
- + width, last_bot - bot, False);
- }
- else
- XClearWindow (term->dpy, win);
- /* scrollbar slider */
- XFillRectangle (term->dpy, win, pscrollbarGC,
- - 1 - xsb, top, sbwidth, bot - top);
- + 0, top, width, bot - top);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement