… | |
… | |
44 | scrollBar.init |= R_SB_XTERM; |
44 | scrollBar.init |= R_SB_XTERM; |
45 | gcvalue.stipple = XCreateBitmapFromData (display->display, scrollBar.win, |
45 | gcvalue.stipple = XCreateBitmapFromData (display->display, scrollBar.win, |
46 | (char *)x_stp_bits, x_stp_width, |
46 | (char *)x_stp_bits, x_stp_width, |
47 | x_stp_height); |
47 | x_stp_height); |
48 | if (!gcvalue.stipple) |
48 | if (!gcvalue.stipple) |
49 | { |
|
|
50 | rxvt_print_error ("can't create bitmap"); |
49 | rxvt_fatal ("can't create bitmap"); |
51 | exit (EXIT_FAILURE); |
50 | |
52 | } |
|
|
53 | gcvalue.fill_style = FillOpaqueStippled; |
51 | gcvalue.fill_style = FillOpaqueStippled; |
54 | gcvalue.foreground = PixColors[Color_fg]; |
52 | gcvalue.foreground = PixColors[Color_fg]; |
55 | gcvalue.background = PixColors[Color_bg]; |
53 | gcvalue.background = PixColors[Color_bg]; |
56 | |
54 | |
57 | xscrollbarGC = XCreateGC (display->display, scrollBar.win, |
55 | xscrollbarGC = XCreateGC (display->display, scrollBar.win, |