mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwin: use screenInfo insead of pointer passed to InitOutput()
We only have one global screenInfo struct ever, and many other parts of the Xserver can only operate on global screenInfo, so it's time to phase out this extra pointer. Once the same has done on the other DDXes, it will be dropped from InitOutput()'s parameter list. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
c49bcbdcc6
commit
850aebf5bc
@@ -821,15 +821,15 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
|
||||
LoadPreferences();
|
||||
|
||||
/* Setup global screen info parameters */
|
||||
pScreenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
|
||||
pScreenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
|
||||
pScreenInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
|
||||
pScreenInfo->bitmapBitOrder = BITMAP_BIT_ORDER;
|
||||
pScreenInfo->numPixmapFormats = ARRAY_SIZE(g_PixmapFormats);
|
||||
screenInfo.imageByteOrder = IMAGE_BYTE_ORDER;
|
||||
screenInfo.bitmapScanlinePad = BITMAP_SCANLINE_PAD;
|
||||
screenInfo.bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
|
||||
screenInfo.bitmapBitOrder = BITMAP_BIT_ORDER;
|
||||
screenInfo.numPixmapFormats = ARRAY_SIZE(g_PixmapFormats);
|
||||
|
||||
/* Describe how we want common pixmap formats padded */
|
||||
for (i = 0; i < ARRAY_SIZE(g_PixmapFormats); i++) {
|
||||
pScreenInfo->formats[i] = g_PixmapFormats[i];
|
||||
screenInfo.formats[i] = g_PixmapFormats[i];
|
||||
}
|
||||
|
||||
/* Load pointers to DirectDraw functions */
|
||||
|
||||
Reference in New Issue
Block a user