diff options
Diffstat (limited to 'src/lx_display.c')
-rw-r--r-- | src/lx_display.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lx_display.c b/src/lx_display.c index d34a25f..ca6fed1 100644 --- a/src/lx_display.c +++ b/src/lx_display.c @@ -389,7 +389,13 @@ lx_create_bo_pixmap(ScreenPtr pScreen, { PixmapPtr pixmap; + +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,5,0,0,0) pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth, 0); +#else + pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth); +#endif + if (!pixmap) return NULL; if (!(*pScreen->ModifyPixmapHeader)(pixmap, width, height, |