[PATCH] xserver file rlAccel.c lvalue error after recent changes

Colin Harrison colin.harrison at virgin.net
Sat Dec 15 10:57:43 PST 2007


Hi,

The file rlAccel.c in xserver/miext/rootless/accel gives an lvalue error
after recent changes.

Patch to fix...

--- ./xserver/miext/rootless/accel/save_rlAccel.c	2007-12-14
19:29:17.000000000 +0000
+++ ./xserver/miext/rootless/accel/rlAccel.c	2007-12-14
19:47:07.000000000 +0000
@@ -51,6 +51,9 @@
 #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 @@
 
     s = xalloc(sizeof(rlAccelScreenRec));
     if (!s) return FALSE;
-    RLACCELREC(pScreen) = s;
+    SETRLACCELREC(pScreen, s);
 
     // Wrap the screen functions we need
     s->CreateGC = pScreen->CreateGC;

Thanks,
Colin Harrison




More information about the xorg mailing list