Lines Matching defs:visuals
237 * purpose: initialize visuals and perform miscellaneous settings
255 VisualPtr visuals;
269 visuals = malloc( sizeof(VisualRec) );
271 if( !depths || !visuals || !vid ) {
273 free( visuals );
280 visuals[0].class = TrueColor;
281 visuals[0].bitsPerRGBValue = 5;
282 visuals[0].ColormapEntries = 1 << 5;
283 visuals[0].nplanes = 15;
284 visuals[0].vid = *vid = FakeClientID(0);
285 visuals[0].greenMask = 0xf800;
286 visuals[0].redMask = 0x07c0;
287 visuals[0].blueMask = 0x003e;
288 visuals[0].offsetGreen = 11;
289 visuals[0].offsetRed = 6;
290 visuals[0].offsetBlue = 1;
301 visuals = malloc( sizeof(VisualRec) );
303 if( !depths || !visuals || !vid ) {
305 free( visuals );
312 visuals[0].class = StaticGray;
313 visuals[0].bitsPerRGBValue = 4;
314 visuals[0].ColormapEntries = 1 << 4;
315 visuals[0].nplanes = 4;
316 visuals[0].vid = *vid = FakeClientID(0);
317 visuals[0].greenMask = 0;
318 visuals[0].redMask = 0;
319 visuals[0].blueMask = 0;
320 visuals[0].offsetGreen = 0;
321 visuals[0].offsetRed = 0;
322 visuals[0].offsetBlue = 0;
326 /* for other modes ( supports all visuals ) */
327 else if (!miInitVisuals(&visuals, &depths, &nvisuals, &ndepths,
334 defaultVisual, nvisuals, visuals))