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

Comparing rxvt-unicode/src/scrollbar-rxvt.C (file contents):
Revision 1.33 by ayin, Sat Dec 29 14:43:44 2007 UTC vs.
Revision 1.34 by ayin, Mon Dec 31 15:45:29 2007 UTC

152 int sbshadow = scrollBar.shadow; 152 int sbshadow = scrollBar.shadow;
153 int sbwidth = (int)scrollBar.width; 153 int sbwidth = (int)scrollBar.width;
154 154
155 if ((scrollBar.init & R_SB_RXVT) == 0) 155 if ((scrollBar.init & R_SB_RXVT) == 0)
156 { 156 {
157 XGCValues gcvalue;
158
157 scrollBar.init |= R_SB_RXVT; 159 scrollBar.init |= R_SB_RXVT;
158 160
161 gcvalue.foreground = pix_colors[Color_topShadow];
162 topShadowGC = XCreateGC (dpy, vt, GCForeground, &gcvalue);
163 gcvalue.foreground = pix_colors[Color_bottomShadow];
164 botShadowGC = XCreateGC (dpy, vt, GCForeground, &gcvalue);
165 gcvalue.foreground = pix_colors[ (depth <= 2 ? Color_fg : Color_scroll)];
166 scrollbarGC = XCreateGC (dpy, vt, GCForeground, &gcvalue);
159 if (sbshadow) 167 if (sbshadow)
160 { 168 {
161 XSetWindowBackground (dpy, scrollBar.win, pix_colors_focused[Color_trough]); 169 XSetWindowBackground (dpy, scrollBar.win, pix_colors_focused[Color_trough]);
162 XClearWindow (dpy, scrollBar.win); 170 XClearWindow (dpy, scrollBar.win);
163 } 171 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines