pix = atoi(argv[i]);
if (-1 == lastScreen)
{
- int i;
- for (i = 0; i < MAXSCREENS; i++)
+ int j;
+ for (j = 0; j < MAXSCREENS; j++)
{
- vfbScreens[i].blackPixel = pix;
+ vfbScreens[j].blackPixel = pix;
}
}
else
pix = atoi(argv[i]);
if (-1 == lastScreen)
{
- int i;
- for (i = 0; i < MAXSCREENS; i++)
+ int j;
+ for (j = 0; j < MAXSCREENS; j++)
{
- vfbScreens[i].whitePixel = pix;
+ vfbScreens[j].whitePixel = pix;
}
}
else
linebias = atoi(argv[i]);
if (-1 == lastScreen)
{
- int i;
- for (i = 0; i < MAXSCREENS; i++)
+ int j;
+ for (j = 0; j < MAXSCREENS; j++)
{
- vfbScreens[i].lineBias = linebias;
+ vfbScreens[j].lineBias = linebias;
}
}
else
if (-1 == lastScreen)
{
- int i;
- for (i = 0; i < MAXSCREENS; i++)
+ int j;
+ for (j = 0; j < MAXSCREENS; j++)
{
- SET_PIXEL_FORMAT(vfbScreens[i]);
+ SET_PIXEL_FORMAT(vfbScreens[j]);
}
}
else
#endif
void
-InitOutput(ScreenInfo *screenInfo, int argc, char **argv)
+InitOutput(ScreenInfo *scrInfo, int argc, char **argv)
{
int i;
int NumFormats = 0;
{
if (NumFormats >= MAXFORMATS)
FatalError ("MAXFORMATS is too small for this server\n");
- screenInfo->formats[NumFormats].depth = i;
- screenInfo->formats[NumFormats].bitsPerPixel = vfbBitsPerPixel(i);
- screenInfo->formats[NumFormats].scanlinePad = BITMAP_SCANLINE_PAD;
+ scrInfo->formats[NumFormats].depth = i;
+ scrInfo->formats[NumFormats].bitsPerPixel = vfbBitsPerPixel(i);
+ scrInfo->formats[NumFormats].scanlinePad = BITMAP_SCANLINE_PAD;
NumFormats++;
}
}
- screenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
- screenInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
- screenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
- screenInfo->bitmapBitOrder = BITMAP_BIT_ORDER;
- screenInfo->numPixmapFormats = NumFormats;
+ scrInfo->imageByteOrder = IMAGE_BYTE_ORDER;
+ scrInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
+ scrInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
+ scrInfo->bitmapBitOrder = BITMAP_BIT_ORDER;
+ scrInfo->numPixmapFormats = NumFormats;
/* initialize screens */