mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-24 20:55:49 +00:00
Bugzilla #1032: Make rootless acceleration functions compatible with
Damage.
This commit is contained in:
parent
cedb9a8d62
commit
6344bb51e2
8 changed files with 139 additions and 14 deletions
|
|
@ -45,10 +45,6 @@
|
|||
|
||||
#include "rootlessCommon.h"
|
||||
|
||||
#if ROOTLESS_ACCEL
|
||||
#include "rlAccel.h"
|
||||
#endif
|
||||
|
||||
|
||||
// GC functions
|
||||
static void RootlessValidateGC(GCPtr pGC, unsigned long changes,
|
||||
|
|
@ -165,7 +161,7 @@ static GCOps rootlessGCOps = {
|
|||
|
||||
...
|
||||
|
||||
if (can_accel_xxx(..) && otherwise-suitable)
|
||||
if (canAccelxxx(..) && otherwise-suitable)
|
||||
GC_UNSET_PM(gc, dst);
|
||||
|
||||
gc->funcs->OP(gc, ...);
|
||||
|
|
@ -283,13 +279,6 @@ RootlessCreateGC(GCPtr pGC)
|
|||
devPrivates[rootlessScreenPrivateIndex].ptr;
|
||||
result = s->CreateGC(pGC);
|
||||
|
||||
#if ROOTLESS_ACCEL
|
||||
pGC->ops->FillSpans = rlFillSpans;
|
||||
pGC->ops->CopyArea = rlCopyArea;
|
||||
pGC->ops->PolyFillRect = rlPolyFillRect;
|
||||
pGC->ops->ImageGlyphBlt = rlImageGlyphBlt;
|
||||
#endif
|
||||
|
||||
gcrec = (RootlessGCRec *) pGC->devPrivates[rootlessGCPrivateIndex].ptr;
|
||||
gcrec->originalOps = NULL; // don't wrap ops yet
|
||||
gcrec->originalFuncs = pGC->funcs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue