summaryrefslogtreecommitdiff
path: root/uxa/uxa-render.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-24 18:22:20 -0800
committerEric Anholt <eric@anholt.net>2009-02-26 14:20:42 -0800
commit22dc9a5580d77cc4707bfb8e19474e611a06ae9a (patch)
tree91a60fbcc1fba6b315549c7b112728320c5f30ec /uxa/uxa-render.c
parentcb1f7ec0876746c1b52b63cdb508544e9e4e32e3 (diff)
Fix UXA for server 1.4.
Diffstat (limited to 'uxa/uxa-render.c')
-rw-r--r--uxa/uxa-render.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index b377bf53..edbf0d8c 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -818,8 +818,13 @@ uxa_create_alpha_picture (ScreenPtr pScreen,
return 0;
}
+#ifdef SERVER_1_5
pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height,
pPictFormat->depth, 0);
+#else
+ pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height,
+ pPictFormat->depth);
+#endif
if (!pPixmap)
return 0;
pGC = GetScratchGC (pPixmap->drawable.depth, pScreen);