diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-05-23 17:15:43 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-09-13 15:55:17 -0700 |
commit | bbbf795e6b1ac048ea17164ba1089055cfe4306d (patch) | |
tree | 3d3901ca3d0ab52fe5d58e030d3c82624bb378fc /fb/fbgc.c | |
parent | 3288232f3d2a0239944bd856101c2d16c713ef40 (diff) |
Delete redundant GC initializations.
When a GC is allocated, it is zeroed, including all storage requested
with dixRegisterPrivateKey. So CreateGC hooks don't need to initialize
anything to zero.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'fb/fbgc.c')
-rw-r--r-- | fb/fbgc.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -64,19 +64,13 @@ const GCOps fbGCOps = { Bool fbCreateGC(GCPtr pGC) { - pGC->clientClip = NULL; - pGC->clientClipType = CT_NONE; - pGC->ops = (GCOps *) &fbGCOps; pGC->funcs = (GCFuncs *) &fbGCFuncs; /* fb wants to translate before scan conversion */ pGC->miTranslate = 1; + pGC->fExpose = 1; - fbGetRotatedPixmap(pGC) = 0; - fbGetExpose(pGC) = 1; - fbGetFreeCompClip(pGC) = 0; - fbGetCompositeClip(pGC) = 0; fbGetGCPrivate(pGC)->bpp = BitsPerPixel (pGC->depth); return TRUE; } |