From 9dbb73033ae60e7ab85f1469a696e2a52f0cb0fe Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Sat, 29 Dec 2007 00:02:16 +0200 Subject: [PATCH] Rootless: Fix lvalue error from devPrivates change Instead of trying to use an invalid expression as an lvalue, use the function call instead. --- miext/rootless/accel/rlAccel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miext/rootless/accel/rlAccel.c b/miext/rootless/accel/rlAccel.c index a14412416..f3cb21569 100644 --- a/miext/rootless/accel/rlAccel.c +++ b/miext/rootless/accel/rlAccel.c @@ -51,6 +51,9 @@ static DevPrivateKey rlAccelScreenPrivateKey = &rlAccelScreenPrivateKey; #define RLACCELREC(pScreen) ((rlAccelScreenRec *) \ dixLookupPrivate(&(pScreen)->devPrivates, rlAccelScreenPrivateKey)) +#define SETRLACCELREC(pScreen, v) \ + dixSetPrivate(&(pScreen)->devPrivates, rlAccelScreenPrivateKey, v) + /* This is mostly identical to fbGCOps. */ static GCOps rlAccelOps = { rlFillSpans, @@ -132,7 +135,7 @@ RootlessAccelInit(ScreenPtr pScreen) s = xalloc(sizeof(rlAccelScreenRec)); if (!s) return FALSE; - RLACCELREC(pScreen) = s; + SETRLACCELREC(pScreen, s); // Wrap the screen functions we need s->CreateGC = pScreen->CreateGC;