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.9 by pcg, Fri Feb 13 12:16:21 2004 UTC vs.
Revision 1.11 by root, Sat Jul 31 15:32:50 2004 UTC

1/*--------------------------------*-C-*---------------------------------* 1/*--------------------------------*-C-*---------------------------------*
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 * 10 *
10 * 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
11 * 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
12 * the Free Software Foundation; either version 2 of the License, or 13 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version. 14 * (at your option) any later version.
121 char a; 122 char a;
122 int x, y; 123 int x, y;
123 Pixmap d; 124 Pixmap d;
124 GC pointcolour; 125 GC pointcolour;
125 126
126 d = XCreatePixmap (display->display, scrollBar.win, width, height, XDEPTH); 127 d = XCreatePixmap (display->display, scrollBar.win, width, height, display->depth);
127 128
128 for (y = 0; y < height; y++) 129 for (y = 0; y < height; y++)
129 { 130 {
130 for (x = 0; x < width; x++) 131 for (x = 0; x < width; x++)
131 { 132 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines