hw/xwin: Fix using screenInfo as a formal parameter to InitOutput() shadows a global declaration
Using screenInfo as a formal parameter to InitOutput() shadows a global declaration of screenInfo. Change the formal parameter name from screenInfo to pScreenInfo, as everywhere else uses. InitOutput.c: In function ‘InitOutput’: InitOutput.c:891:25: error: declaration of ‘screenInfo’ shadows a global declaration ../../include/scrnintstr.h:570:19: error: shadowed declaration is here Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
97e9c34687
commit
47df98c785
|
@ -897,7 +897,7 @@ ddxUseMsg(void)
|
|||
*/
|
||||
|
||||
void
|
||||
InitOutput(ScreenInfo * screenInfo, int argc, char *argv[])
|
||||
InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -940,15 +940,15 @@ InitOutput(ScreenInfo * screenInfo, int argc, char *argv[])
|
|||
LoadPreferences();
|
||||
|
||||
/* Setup global screen info parameters */
|
||||
screenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
|
||||
screenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
|
||||
screenInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
|
||||
screenInfo->bitmapBitOrder = BITMAP_BIT_ORDER;
|
||||
screenInfo->numPixmapFormats = NUMFORMATS;
|
||||
pScreenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
|
||||
pScreenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
|
||||
pScreenInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
|
||||
pScreenInfo->bitmapBitOrder = BITMAP_BIT_ORDER;
|
||||
pScreenInfo->numPixmapFormats = NUMFORMATS;
|
||||
|
||||
/* Describe how we want common pixmap formats padded */
|
||||
for (i = 0; i < NUMFORMATS; i++) {
|
||||
screenInfo->formats[i] = g_PixmapFormats[i];
|
||||
pScreenInfo->formats[i] = g_PixmapFormats[i];
|
||||
}
|
||||
|
||||
/* Load pointers to DirectDraw functions */
|
||||
|
|
Loading…
Reference in New Issue