summaryrefslogtreecommitdiff
path: root/randr/rrcrtc.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-11-24 13:08:48 -0800
committerKeith Packard <keithp@keithp.com>2008-11-25 22:17:58 -0800
commit9ffc6719390df8fdd0a5295a7a7a0eaea792be45 (patch)
tree5e8458e61270bc1c8a2473b51ead0562a9414a96 /randr/rrcrtc.c
parentc4b9ab6bf56139fdd8c7c584a6f523c6766cddd6 (diff)
Move matrix operations from X server to pixman 0.13.2
pixman 0.13.2 now holds all of the matrix operations. This leaves the protocol conversion routines and some ABI stubs in place Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r--randr/rrcrtc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index c43163706..5d270ce12 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -91,9 +91,9 @@ RRCrtcCreate (ScreenPtr pScreen, void *devPrivate)
crtc->devPrivate = devPrivate;
RRTransformInit (&crtc->client_pending_transform);
RRTransformInit (&crtc->client_current_transform);
- PictureTransformInitIdentity (&crtc->transform);
- pict_f_transform_init_identity (&crtc->f_transform);
- pict_f_transform_init_identity (&crtc->f_inverse);
+ pixman_transform_init_identity (&crtc->transform);
+ pixman_f_transform_init_identity (&crtc->f_transform);
+ pixman_f_transform_init_identity (&crtc->f_inverse);
if (!AddResource (crtc->id, RRCrtcType, (pointer) crtc))
return NULL;
@@ -395,7 +395,7 @@ RRCrtcGetTransform (RRCrtcPtr crtc)
{
RRTransformPtr transform = &crtc->client_pending_transform;
- if (PictureTransformIsIdentity (&transform->transform))
+ if (pixman_transform_is_identity (&transform->transform))
return NULL;
return transform;
}
@@ -508,7 +508,7 @@ RRModeGetScanoutSize (RRModePtr mode, PictTransformPtr transform,
box.x2 = mode->mode.width;
box.y2 = mode->mode.height;
- PictureTransformBounds (&box, transform);
+ pixman_transform_bounds (transform, &box);
*width = box.x2 - box.x1;
*height = box.y2 - box.y1;
}
@@ -558,8 +558,8 @@ RRCrtcGammaSetSize (RRCrtcPtr crtc,
int
RRCrtcTransformSet (RRCrtcPtr crtc,
PictTransformPtr transform,
- struct pict_f_transform *f_transform,
- struct pict_f_transform *f_inverse,
+ struct pixman_f_transform *f_transform,
+ struct pixman_f_transform *f_inverse,
char *filter_name,
int filter_len,
xFixed *params,
@@ -909,7 +909,7 @@ ProcRRSetCrtcConfig (ClientPtr client)
int source_width;
int source_height;
PictTransform transform;
- struct pict_f_transform f_transform, f_inverse;
+ struct pixman_f_transform f_transform, f_inverse;
RRTransformCompute (stuff->x, stuff->y,
mode->mode.width, mode->mode.height,
@@ -1011,7 +1011,7 @@ ProcRRGetCrtcGamma (ClientPtr client)
RRCrtcPtr crtc;
int n;
unsigned long len;
- char *extra;
+ char *extra = NULL;
REQUEST_SIZE_MATCH(xRRGetCrtcGammaReq);
crtc = LookupCrtc (client, stuff->crtc, DixReadAccess);
@@ -1083,7 +1083,7 @@ ProcRRSetCrtcTransform (ClientPtr client)
REQUEST(xRRSetCrtcTransformReq);
RRCrtcPtr crtc;
PictTransform transform;
- struct pict_f_transform f_transform, f_inverse;
+ struct pixman_f_transform f_transform, f_inverse;
char *filter;
int nbytes;
xFixed *params;
@@ -1095,8 +1095,8 @@ ProcRRSetCrtcTransform (ClientPtr client)
return RRErrorBase + BadRRCrtc;
PictTransform_from_xRenderTransform (&transform, &stuff->transform);
- pict_f_transform_from_pixman_transform (&f_transform, &transform);
- if (!pict_f_transform_invert (&f_inverse, &f_transform))
+ pixman_f_transform_from_pixman_transform (&f_transform, &transform);
+ if (!pixman_f_transform_invert (&f_inverse, &f_transform))
return BadMatch;
filter = (char *) (stuff + 1);