… | |
… | |
121 | char a; |
121 | char a; |
122 | int x, y; |
122 | int x, y; |
123 | Pixmap d; |
123 | Pixmap d; |
124 | GC pointcolour; |
124 | GC pointcolour; |
125 | |
125 | |
126 | d = XCreatePixmap (display->display, scrollBar.win, width, height, depth); |
126 | d = XCreatePixmap (xdisp, scrollBar.win, width, height, depth); |
127 | |
127 | |
128 | for (y = 0; y < height; y++) |
128 | for (y = 0; y < height; y++) |
129 | { |
129 | { |
130 | for (x = 0; x < width; x++) |
130 | for (x = 0; x < width; x++) |
131 | { |
131 | { |
… | |
… | |
136 | else if (a == '%' || a == 'd') |
136 | else if (a == '%' || a == 'd') |
137 | pointcolour = darkGC; |
137 | pointcolour = darkGC; |
138 | else /* if (a == '#' || a == 'b' || a) */ |
138 | else /* if (a == '#' || a == 'b' || a) */ |
139 | pointcolour = blackGC; |
139 | pointcolour = blackGC; |
140 | |
140 | |
141 | XDrawPoint (display->display, d, pointcolour, x, y); |
141 | XDrawPoint (xdisp, d, pointcolour, x, y); |
142 | } |
142 | } |
143 | } |
143 | } |
144 | return d; |
144 | return d; |
145 | } |
145 | } |
146 | |
146 | |