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.14 by root, Sat Dec 31 17:16:17 2005 UTC vs.
Revision 1.15 by root, Wed Jan 25 21:09:21 2006 UTC

38 XGCValues gcvalue; 38 XGCValues gcvalue;
39 39
40 scrollBar.init |= R_SB_PLAIN; 40 scrollBar.init |= R_SB_PLAIN;
41 gcvalue.foreground = pix_colors_focused[Color_scroll]; 41 gcvalue.foreground = pix_colors_focused[Color_scroll];
42 42
43 pscrollbarGC = XCreateGC (display->display, scrollBar.win, 43 pscrollbarGC = XCreateGC (xdisp, scrollBar.win,
44 GCForeground, &gcvalue); 44 GCForeground, &gcvalue);
45 } 45 }
46 46
47 xsb = OPTION (Opt_scrollBar_right) ? 1 : 0; 47 xsb = OPTION (Opt_scrollBar_right) ? 1 : 0;
48 48
49 if (update) 49 if (update)
50 { 50 {
51 if (last_top < scrollBar.top) 51 if (last_top < scrollBar.top)
52 XClearArea (display->display, scrollBar.win, 52 XClearArea (xdisp, scrollBar.win,
53 sb_shadow + xsb, last_top, 53 sb_shadow + xsb, last_top,
54 sbwidth + 1, (scrollBar.top - last_top), False); 54 sbwidth + 1, (scrollBar.top - last_top), False);
55 55
56 if (scrollBar.bot < last_bot) 56 if (scrollBar.bot < last_bot)
57 XClearArea (display->display, scrollBar.win, 57 XClearArea (xdisp, scrollBar.win,
58 sb_shadow + xsb, scrollBar.bot, 58 sb_shadow + xsb, scrollBar.bot,
59 sbwidth + 1, (last_bot - scrollBar.bot), False); 59 sbwidth + 1, (last_bot - scrollBar.bot), False);
60 } 60 }
61 else 61 else
62 XClearWindow (display->display, scrollBar.win); 62 XClearWindow (xdisp, scrollBar.win);
63 63
64 /* scrollbar slider */ 64 /* scrollbar slider */
65 XFillRectangle (display->display, scrollBar.win, pscrollbarGC, 65 XFillRectangle (xdisp, scrollBar.win, pscrollbarGC,
66 xsb + 1, scrollBar.top, sbwidth, scrollbar_len); 66 xsb + 1, scrollBar.top, sbwidth, scrollbar_len);
67 67
68 return 1; 68 return 1;
69} 69}
70 70

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines