50 Colormap stdcmap =
Scr->RootColormaps.cwins[0]->colormap->c;
51 XpmAttributes attributes;
52 static XpmColorSymbol overrides[] = {
53 {
"Foreground", NULL, 0},
54 {
"Background", NULL, 0},
55 {
"HiShadow", NULL, 0},
70 attributes.valuemask = 0;
71 attributes.valuemask |= XpmSize;
72 attributes.valuemask |= XpmReturnPixels;
73 attributes.valuemask |= XpmColormap;
74 attributes.valuemask |= XpmDepth;
75 attributes.valuemask |= XpmVisual;
76 attributes.valuemask |= XpmCloseness;
77 attributes.valuemask |= XpmColorSymbols;
79 attributes.numsymbols = 4;
80 attributes.colorsymbols = overrides;
81 overrides[0].pixel = cp.
fore;
82 overrides[1].pixel = cp.
back;
83 overrides[2].pixel = cp.
shadd;
84 overrides[3].pixel = cp.
shadc;
88 attributes.depth =
Scr->d_depth;
89 attributes.visual =
Scr->d_visual;
90 attributes.closeness = 65535;
91 status = XpmReadFileToPixmap(
dpy,
Scr->Root, fullname,
92 &(image->
pixmap), &(image->
mask), &attributes);
93 if(status != XpmSuccess) {
100 image->
width = attributes.width;
101 image->
height = attributes.height;