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

Comparing rxvt-unicode/src/scrollbar-next.C (file contents):
Revision 1.16 by root, Fri Feb 4 11:41:23 2005 UTC vs.
Revision 1.19 by root, Tue Dec 20 19:31:00 2005 UTC

164 GCForeground | GCGraphicsExposures, &gcvalue); 164 GCForeground | GCGraphicsExposures, &gcvalue);
165 165
166 xcol.red = 0xaeba; 166 xcol.red = 0xaeba;
167 xcol.green = 0xaaaa; 167 xcol.green = 0xaaaa;
168 xcol.blue = 0xaeba; 168 xcol.blue = 0xaeba;
169 //if (!rXAllocColor (&xcol, "light gray"))//TODO//D//
170 xcol.pixel = pix_colors_focused[Color_AntiqueWhite]; 169 xcol.pixel = pix_colors_focused[Color_scroll];
171 light = gcvalue.foreground = xcol.pixel; 170 light = gcvalue.foreground = xcol.pixel;
172 grayGC = XCreateGC (disp, scrollBar.win, 171 grayGC = XCreateGC (disp, scrollBar.win,
173 GCForeground | GCGraphicsExposures, &gcvalue); 172 GCForeground | GCGraphicsExposures, &gcvalue);
174 173
175 xcol.red = 0x51aa; 174 xcol.red = 0x51aa;
241 { 240 {
242 scrollBar.init |= R_SB_NEXT; 241 scrollBar.init |= R_SB_NEXT;
243 init_scrollbar_stuff (); 242 init_scrollbar_stuff ();
244 } 243 }
245 244
246 if (TermWin.nscrolled == 0 || !update) 245 if (nsaved == 0 || !update)
247 { 246 {
248 XFillRectangle (disp, scrollBar.win, grayGC, 0, 0, 247 XFillRectangle (disp, scrollBar.win, grayGC, 0, 0,
249 SB_WIDTH_NEXT + 1, height); 248 SB_WIDTH_NEXT + 1, height);
250 XDrawRectangle (disp, scrollBar.win, blackGC, 0, 249 XDrawRectangle (disp, scrollBar.win, blackGC, 0,
251 -SB_BORDER_WIDTH, SB_WIDTH_NEXT, 250 -SB_BORDER_WIDTH, SB_WIDTH_NEXT,
252 height + SB_BORDER_WIDTH); 251 height + SB_BORDER_WIDTH);
253 XFillRectangle (disp, scrollBar.win, stippleGC, 252 XFillRectangle (disp, scrollBar.win, stippleGC,
254 SB_LEFT_PADDING, 0, SB_BUTTON_WIDTH, height); 253 SB_LEFT_PADDING, 0, SB_BUTTON_WIDTH, height);
255 } 254 }
256 255
257 if (TermWin.nscrolled) 256 if (nsaved)
258 { 257 {
259 if (last_top < scrollBar.top || !update) 258 if (last_top < scrollBar.top || !update)
260 XFillRectangle (disp, scrollBar.win, stippleGC, 259 XFillRectangle (disp, scrollBar.win, stippleGC,
261 SB_LEFT_PADDING, SB_PADDING + last_top, 260 SB_LEFT_PADDING, SB_PADDING + last_top,
262 SB_BUTTON_WIDTH, scrollBar.top - last_top); 261 SB_BUTTON_WIDTH, scrollBar.top - last_top);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines