#define VFB_DEFAULT_WIDTH 1024
#define VFB_DEFAULT_HEIGHT 768
#define VFB_DEFAULT_DEPTH 24
-#define VFB_DEFAULT_LINEBIAS 0
typedef struct {
int width;
} vfbFramebufferInfo, *vfbFramebufferInfoPtr;
typedef struct {
- unsigned int lineBias;
-
vfbFramebufferInfo fb;
Bool pixelFormatDefined;
int i;
for (i = 0; i < MAXSCREENS; i++) {
- vfbScreens[i].lineBias = VFB_DEFAULT_LINEBIAS;
vfbScreens[i].fb.width = VFB_DEFAULT_WIDTH;
vfbScreens[i].fb.height = VFB_DEFAULT_HEIGHT;
vfbScreens[i].fb.pfbMemory = NULL;
ErrorF("-pixdepths list-of-int support given pixmap depths\n");
ErrorF("+/-render turn on/off RENDER extension support"
"(default on)\n");
- ErrorF("-linebias n adjust thin line pixelization\n");
ErrorF("-geometry WxH set screen 0's width, height\n");
ErrorF("-depth D set screen 0's depth\n");
return 1;
}
- if (strcmp(argv[i], "-linebias") == 0) { /* -linebias n */
- unsigned int linebias;
-
- CHECK_FOR_REQUIRED_ARGUMENTS(1);
- ++i;
- linebias = atoi(argv[i]);
- if (-1 == lastScreen) {
- int j;
-
- for (j = 0; j < MAXSCREENS; j++) {
- vfbScreens[j].lineBias = linebias;
- }
- }
- else {
- vfbScreens[lastScreen].lineBias = linebias;
- }
- return 2;
- }
-
if (strcmp(argv[i], "-geometry") == 0) {
CHECK_FOR_REQUIRED_ARGUMENTS(1);
++i;
if (!ret)
return FALSE;
- miSetZeroLineBias(pScreen, pvfb->lineBias);
-
return TRUE;
} /* end vfbScreenInit */