diff options
author | Priit Laes <plaes@plaes.org> | 2010-12-15 03:54:13 +0200 |
---|---|---|
committer | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2010-12-15 17:30:14 +0200 |
commit | b9a5a86a402832fe699e43b3030932b50ae821a0 (patch) | |
tree | 7e928c4136bf0b8d5db1312e2ecb68a1ca253e17 /src/lx_display.c | |
parent | bae443bb46c81702a57d4914b7e56f17e5aa1f3a (diff) |
Restoring compatibility down to X server 1.4
Signed-off-by: Priit Laes <plaes@plaes.org>
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, |