48 static unsigned char greypattern [] = {0x0f, 0x05, 0x0f, 0x0a};
50 static char dashlist [2] = {1, 1};
52 if(!
Scr->FirstTime || prevScr ==
Scr) {
66 gcv.foreground =
Scr->XORvalue;
67 gcm |= GCSubwindowMode;
68 gcv.subwindow_mode = IncludeInferiors;
70 Scr->DrawGC = XCreateGC(
dpy,
Scr->Root, gcm, &gcv);
74 gcv.foreground =
Scr->MenuC.fore;
76 gcv.background =
Scr->MenuC.back;
78 Scr->MenuGC = XCreateGC(
dpy,
Scr->Root, gcm, &gcv);
82 gcv.plane_mask = AllPlanes;
88 gcm |= GCGraphicsExposures;
89 gcv.graphics_exposures = False;
93 Scr->NormalGC = XCreateGC(
dpy,
Scr->Root, gcm, &gcv);
95 greypixmap = XCreatePixmapFromBitmapData(
dpy,
Scr->Root,
96 (
char *) greypattern, 4, 4, 1, 0, 1);
98 if(
Scr->Monochrome != COLOR) {
101 gcv.stipple = greypixmap;
103 gcv.fill_style = FillOpaqueStippled;
105 gcv.foreground =
Scr->Black;
107 gcv.background =
Scr->White;
108 Scr->BorderGC = XCreateGC(
dpy,
Scr->Root, gcm, &gcv);
109 XSetDashes(
dpy,
Scr->BorderGC, 1, dashlist, 2);
111 else if(
Scr->BeNiceToColormap) {
114 gcv.line_style = LineDoubleDash;
115 Scr->BorderGC = XCreateGC(
dpy,
Scr->Root, gcm, &gcv);
116 XSetDashes(
dpy,
Scr->BorderGC, 0, dashlist, 2);
119 Scr->BorderGC = XCreateGC(
dpy,
Scr->Root, 0, NULL);