Commit 3835e8b0 authored by Keith Packard's avatar Keith Packard

xfree86/shadowfb: GCFuncs and GCOps are now const

Change GC private to match and fix resulting warnings
Signed-off-by: Keith Packard's avatarKeith Packard <>
Reviewed-by: Adam Jackson's avatarAdam Jackson <>
parent f71de603
......@@ -62,8 +62,8 @@ typedef struct {
} ShadowScreenRec, *ShadowScreenPtr;
typedef struct {
GCOps *ops;
GCFuncs *funcs;
const GCOps *ops;
const GCFuncs *funcs;
} ShadowGCRec, *ShadowGCPtr;
static DevPrivateKeyRec ShadowScreenKeyRec;
......@@ -96,7 +96,7 @@ static DevPrivateKeyRec ShadowGCKeyRec;
ShadowScreenPtr pPriv = GET_SCREEN_PRIVATE(pGC->pScreen); \
ShadowGCPtr pGCPriv = GET_GC_PRIVATE(pGC);\
GCFuncs *oldFuncs = pGC->funcs;\
const GCFuncs *oldFuncs = pGC->funcs;\
pGC->funcs = pGCPriv->funcs;\
pGC->ops = pGCPriv->ops
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment