ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/scrollbar-plain.C
(Generate patch)

Comparing rxvt-unicode/src/scrollbar-plain.C (file contents):
Revision 1.1 by pcg, Sat Jan 31 04:12:10 2004 UTC vs.
Revision 1.2 by pcg, Sat Jan 31 04:20:20 2004 UTC

41 gcvalue.background = PixColors[Color_bg]; 41 gcvalue.background = PixColors[Color_bg];
42 42
43 pscrollbarGC = XCreateGC(Xdisplay, scrollBar.win, 43 pscrollbarGC = XCreateGC(Xdisplay, scrollBar.win,
44 GCForeground | GCBackground 44 GCForeground | GCBackground
45 | GCFillStyle, &gcvalue); 45 | GCFillStyle, &gcvalue);
46 gcvalue.foreground = PixColors[Color_border];
47 pShadowGC = XCreateGC(Xdisplay, scrollBar.win, GCForeground, &gcvalue);
48 } 46 }
49/* instead of XClearWindow (Xdisplay, scrollBar.win); */ 47/* instead of XClearWindow (Xdisplay, scrollBar.win); */
50 xsb = (Options & Opt_scrollBar_right) ? 1 : 0; 48 xsb = (Options & Opt_scrollBar_right) ? 1 : 0;
51 if (last_top < scrollBar.top) 49 if (last_top < scrollBar.top)
52 XClearArea(Xdisplay, scrollBar.win, 50 XClearArea(Xdisplay, scrollBar.win,
57 XClearArea(Xdisplay, scrollBar.win, 55 XClearArea(Xdisplay, scrollBar.win,
58 sb_shadow + xsb, scrollBar.bot, 56 sb_shadow + xsb, scrollBar.bot,
59 sbwidth + 1, (last_bot - scrollBar.bot), False); 57 sbwidth + 1, (last_bot - scrollBar.bot), False);
60 58
61/* scrollbar slider */ 59/* scrollbar slider */
62 XFillRectangle(Xdisplay, scrollBar.win, xscrollbarGC, 60 XFillRectangle(Xdisplay, scrollBar.win, pscrollbarGC,
63 xsb + 1, scrollBar.top, sbwidth, scrollbar_len); 61 xsb + 1, scrollBar.top, sbwidth, scrollbar_len);
64 62
65 return 1; 63 return 1;
66} 64}
67#endif /* XTERM_SCROLLBAR */ 65#endif /* XTERM_SCROLLBAR */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines