- if(lightblue == nil)
- sysfatal("allocimagemix: %r");
- if((font = openfont(display, fontname)) == nil)
- sysfatal("font '%s' not found", fontname);
+
+ statecol[0] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xCCCCCCFF);
+ statecol[1] = lightblue;
+ statecol[2] = lightblue;
+ statecol[3] = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPalegreygreen);
+
+ for(i=0; i<nelem(statecol); i++)
+ if(statecol[i] == nil)
+ sysfatal("allocimage: %r");