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 | { |