summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2012-09-12 10:38:41 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-09-20 15:36:44 -0400
commit7f0b820d919eb944eae201de03b186bd247b0324 (patch)
tree9af353bc30f07519343c1d7b13879facb5993fa9 /src
parentfb038eb37906eba9a88e0cb6622a59f06dcc2a68 (diff)
Only use dixScreenSpecificPrivatesSize if we have a new enough Xorg.
This lets us continue to support older Xorg releases. This reverts 4f37cd85 and partially reverts 4a43bd4.
Diffstat (limited to 'src')
-rw-r--r--src/qxl_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 04a9aa8..531c761 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1821,10 +1821,14 @@ qxl_screen_init (SCREEN_INIT_ARGS_DECL)
DamageSetup (pScreen);
/* We need to set totalPixmapSize after setup_uxa and Damage,
- * as the privatssize is not computed correctly until then
+ as the privates size is not computed correctly until then
*/
+#if (XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 12, 99, 901, 0))
+ pScreen->totalPixmapSize = BitmapBytePad ((sizeof (PixmapRec) + dixPrivatesSize (PRIVATE_PIXMAP) ) * 8);
+#else
pScreen->totalPixmapSize = BitmapBytePad((sizeof(PixmapRec) +
dixScreenSpecificPrivatesSize(pScreen, PRIVATE_PIXMAP) ) * 8);
+#endif
miDCInitialize (pScreen, xf86GetPointerScreenFuncs());
if (!miCreateDefColormap (pScreen))