winex11: Only declare X11DRV_DIB_QueryXShm if XShm is supported.

This commit is contained in:
Austin English 2011-10-27 13:25:26 -05:00 committed by Alexandre Julliard
parent abfb9211c8
commit 31f8a525c8
1 changed files with 1 additions and 3 deletions

View File

@ -3849,7 +3849,6 @@ static XImage *X11DRV_XShmCreateImage( int width, int height, int bpp,
} }
return image; return image;
} }
#endif /* HAVE_LIBXXSHM */
static Bool X11DRV_DIB_QueryXShm( Bool *pixmaps ) static Bool X11DRV_DIB_QueryXShm( Bool *pixmaps )
{ {
@ -3858,17 +3857,16 @@ static Bool X11DRV_DIB_QueryXShm( Bool *pixmaps )
if (!initialized) if (!initialized)
{ {
#ifdef HAVE_LIBXXSHM
int major, minor; int major, minor;
have_xshm = XShmQueryVersion( gdi_display, &major, &minor, &have_xshm_pixmaps ); have_xshm = XShmQueryVersion( gdi_display, &major, &minor, &have_xshm_pixmaps );
#endif
initialized = TRUE; initialized = TRUE;
} }
*pixmaps = have_xshm_pixmaps; *pixmaps = have_xshm_pixmaps;
return have_xshm; return have_xshm;
} }
#endif /* HAVE_LIBXXSHM */
/*********************************************************************** /***********************************************************************
* X11DRV_CreateDIBSection (X11DRV.@) * X11DRV_CreateDIBSection (X11DRV.@)