Lines Matching defs:visuals
236 * purpose: initialize visuals and perform miscellaneous settings
254 VisualPtr visuals;
268 visuals = malloc( sizeof(VisualRec) );
270 if( !depths || !visuals || !vid ) {
272 free( visuals );
279 visuals[0].class = TrueColor;
280 visuals[0].bitsPerRGBValue = 5;
281 visuals[0].ColormapEntries = 1 << 5;
282 visuals[0].nplanes = 15;
283 visuals[0].vid = *vid = FakeClientID(0);
284 visuals[0].greenMask = 0xf800;
285 visuals[0].redMask = 0x07c0;
286 visuals[0].blueMask = 0x003e;
287 visuals[0].offsetGreen = 11;
288 visuals[0].offsetRed = 6;
289 visuals[0].offsetBlue = 1;
300 visuals = malloc( sizeof(VisualRec) );
302 if( !depths || !visuals || !vid ) {
304 free( visuals );
311 visuals[0].class = StaticGray;
312 visuals[0].bitsPerRGBValue = 4;
313 visuals[0].ColormapEntries = 1 << 4;
314 visuals[0].nplanes = 4;
315 visuals[0].vid = *vid = FakeClientID(0);
316 visuals[0].greenMask = 0;
317 visuals[0].redMask = 0;
318 visuals[0].blueMask = 0;
319 visuals[0].offsetGreen = 0;
320 visuals[0].offsetRed = 0;
321 visuals[0].offsetBlue = 0;
325 /* for other modes ( supports all visuals ) */
326 else if (!miInitVisuals(&visuals, &depths, &nvisuals, &ndepths,
333 defaultVisual, nvisuals, visuals))