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.10 by root, Mon Jun 21 22:24:07 2004 UTC vs.
Revision 1.13 by root, Sun Aug 15 22:09:24 2004 UTC

21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 *----------------------------------------------------------------------*/ 22 *----------------------------------------------------------------------*/
23 23
24#include "../config.h" /* NECESSARY */ 24#include "../config.h" /* NECESSARY */
25#include "rxvt.h" /* NECESSARY */ 25#include "rxvt.h" /* NECESSARY */
26#include "scrollbar-rxvt.intpro" /* PROTOS for internal routines */
27 26
28/*----------------------------------------------------------------------*/ 27/*----------------------------------------------------------------------*/
29#if defined(RXVT_SCROLLBAR) 28#if defined(RXVT_SCROLLBAR)
30 29
31/* draw triangular button with a shadow of SHADOW (1 or 2) pixels */ 30/* draw triangular button with a shadow of SHADOW (1 or 2) pixels */
132 if ((scrollBar.init & R_SB_RXVT) == 0) 131 if ((scrollBar.init & R_SB_RXVT) == 0)
133 { 132 {
134 scrollBar.init |= R_SB_RXVT; 133 scrollBar.init |= R_SB_RXVT;
135 if (sbshadow) 134 if (sbshadow)
136 { 135 {
137 XSetWindowBackground (display->display, scrollBar.win, PixColors[Color_trough]); 136 XSetWindowBackground (display->display, scrollBar.win, pix_colors[Color_trough]);
138 XClearWindow (display->display, scrollBar.win); 137 XClearWindow (display->display, scrollBar.win);
139 } 138 }
140 } 139 }
141 else 140 else
142 { 141 {
157 /* scrollbar slider */ 156 /* scrollbar slider */
158#ifdef SB_BORDER 157#ifdef SB_BORDER
159 { 158 {
160 int xofs; 159 int xofs;
161 160
162 if (Options & Opt_scrollBar_right) 161 if (options & Opt_scrollBar_right)
163 xofs = 0; 162 xofs = 0;
164 else 163 else
165 xofs = sbshadow ? sbwidth : sbwidth - 1; 164 xofs = sbshadow ? sbwidth : sbwidth - 1;
166 165
167 XDrawLine (display->display, scrollBar.win, botShadowGC, 166 XDrawLine (display->display, scrollBar.win, botShadowGC,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines