diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index cf873c31b..2ff398297 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -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 */