Lines Matching refs:mode
72 DGAModePtr mode;
77 mode = xnfcalloc(sizeof(DGAModeRec), 1);
78 if (!mode) {
84 mode->num = 0;
85 mode->mode = pScrn->modes;
88 mode->flags = (DGA_CONCURRENT_ACCESS | DGA_PIXMAP_AVAILABLE | DGA_FILL_RECT);
89 mode->flags |= DGA_BLIT_RECT;
91 mode->imageWidth = 2048;
92 mode->imageHeight = 2048;
93 mode->pixmapWidth = 2048;
94 mode->pixmapHeight = 2048;
99 * XXX mode values do not match that definition.
104 mode->bytesPerScanline = pScrn->modes->HDisplay * 4;
106 mode->bytesPerScanline = (2048 * 4);
109 mode->byteOrder = pScrn->imageByteOrder;
110 mode->depth = 32;
111 mode->bitsPerPixel = 32;
112 mode->red_mask = 0xff;
113 mode->green_mask = 0xff00;
114 mode->blue_mask = 0xff0000;
115 mode->visualClass = TrueColor;
116 mode->viewportWidth = pScrn->modes->HDisplay;
117 mode->viewportHeight = pScrn->modes->VDisplay;
122 mode->xViewportStep = 0;
123 mode->yViewportStep = 0;
124 mode->maxViewportX = 0;
125 mode->maxViewportY = 0;
127 mode->viewportFlags = 0;
128 mode->offset = 0;
130 result = DGAInit(pScreen, &FFB_DGAFuncs, mode, 1);
163 /* Nothing to do, we currently only support one mode