1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: scrollbar-xterm.C |
2 | * File: scrollbar-xterm.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) 1999-2001 Geoff Wing <gcw@pobox.com> |
6 | * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com> |
7 | * Copyright (c) 2004 Marc Lehmann <pcg@goof.com> |
7 | * Copyright (c) 2004-2006 Marc Lehmann <pcg@goof.com> |
8 | * |
8 | * |
9 | * This program is free software; you can redistribute it and/or modify |
9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by |
10 | * it under the terms of the GNU General Public License as published by |
11 | * the Free Software Foundation; either version 2 of the License, or |
11 | * the Free Software Foundation; either version 2 of the License, or |
12 | * (at your option) any later version. |
12 | * (at your option) any later version. |
… | |
… | |
47 | x_stp_height); |
47 | x_stp_height); |
48 | if (!gcvalue.stipple) |
48 | if (!gcvalue.stipple) |
49 | rxvt_fatal ("can't create bitmap\n"); |
49 | rxvt_fatal ("can't create bitmap\n"); |
50 | |
50 | |
51 | gcvalue.fill_style = FillOpaqueStippled; |
51 | gcvalue.fill_style = FillOpaqueStippled; |
52 | gcvalue.foreground = pix_colors_focused[Color_fg]; |
52 | gcvalue.foreground = pix_colors_focused[Color_scroll]; |
53 | gcvalue.background = pix_colors_focused[Color_bg]; |
53 | gcvalue.background = pix_colors_focused[Color_bg]; |
54 | |
54 | |
55 | xscrollbarGC = XCreateGC (dpy, scrollBar.win, |
55 | xscrollbarGC = XCreateGC (dpy, scrollBar.win, |
56 | GCForeground | GCBackground |
56 | GCForeground | GCBackground |
57 | | GCFillStyle | GCStipple, &gcvalue); |
57 | | GCFillStyle | GCStipple, &gcvalue); |