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.23 by root, Thu Feb 2 18:04:46 2006 UTC vs.
Revision 1.27 by ayin, Wed Feb 6 01:29:19 2008 UTC

1/*--------------------------------*-C-*---------------------------------* 1/*----------------------------------------------------------------------*
2 * File: scrollbar-next.C 2 * File: scrollbar-next.C
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * 4 *
5 * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> 5 * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA>
6 * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> 6 * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org>
7 * - N*XTstep like scrollbars 7 * - N*XTstep like scrollbars
8 * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com> 8 * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com>
9 * Copyright (c) 2004 Marc Lehmann <pcg@goof.com> 9 * Copyright (c) 2004-2006 Marc Lehmann <pcg@goof.com>
10 * 10 *
11 * This program is free software; you can redistribute it and/or modify 11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by 12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or 13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version. 14 * (at your option) any later version.
280 SB_BUTTON_HEIGHT); 280 SB_BUTTON_HEIGHT);
281 drawBevel (scrollBar.win, SB_BUTTON_BEVEL_X, 281 drawBevel (scrollBar.win, SB_BUTTON_BEVEL_X,
282 height - SB_BUTTON_SINGLE_HEIGHT, SB_BUTTON_WIDTH, 282 height - SB_BUTTON_SINGLE_HEIGHT, SB_BUTTON_WIDTH,
283 SB_BUTTON_HEIGHT); 283 SB_BUTTON_HEIGHT);
284 284
285 s = (scrollbar_isUp ()) ? upArrowHi : upArrow; 285 s = scrollBar.state == STATE_UP ? upArrowHi : upArrow;
286 XCopyArea (dpy, s, scrollBar.win, whiteGC, 0, 0, 286 XCopyArea (dpy, s, scrollBar.win, whiteGC, 0, 0,
287 ARROW_WIDTH, ARROW_HEIGHT, SB_BUTTON_FACE_X, 287 ARROW_WIDTH, ARROW_HEIGHT, SB_BUTTON_FACE_X,
288 height - SB_BUTTON_BOTH_HEIGHT + SB_BEVEL_WIDTH_UPPER_LEFT); 288 height - SB_BUTTON_BOTH_HEIGHT + SB_BEVEL_WIDTH_UPPER_LEFT);
289 289
290 s = (scrollbar_isDn ()) ? downArrowHi : downArrow; 290 s = scrollBar.state == STATE_DOWN ? downArrowHi : downArrow;
291 XCopyArea (dpy, s, scrollBar.win, whiteGC, 0, 0, 291 XCopyArea (dpy, s, scrollBar.win, whiteGC, 0, 0,
292 ARROW_WIDTH, ARROW_HEIGHT, SB_BUTTON_FACE_X, 292 ARROW_WIDTH, ARROW_HEIGHT, SB_BUTTON_FACE_X,
293 height - SB_BUTTON_SINGLE_HEIGHT + SB_BEVEL_WIDTH_UPPER_LEFT); 293 height - SB_BUTTON_SINGLE_HEIGHT + SB_BEVEL_WIDTH_UPPER_LEFT);
294 } 294 }
295 295
296 return 1; 296 return 1;
297} 297}
298#endif /* NEXT_SCROLLBAR */ 298#endif /* NEXT_SCROLLBAR */
299/*----------------------- end-of-file (C source) -----------------------*/ 299/*----------------------- end-of-file (C source) -----------------------*/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines