diff options
author | Keith Packard <keithp@keithp.com> | 2011-02-23 11:18:12 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-02-23 11:18:12 -0800 |
commit | a91d33917befd6719bb7f01007bc253a2aefb0bb (patch) | |
tree | dabf61fa7a6245b6417c7fce34d9f1b73a92b1dd /randr/rrcrtc.c | |
parent | 3d4ee25a1e2e0ed2463ceaabea8f5a284a6ddd60 (diff) |
Revert "randr: Add sprite position transforms"
This reverts commit 66294afcab7b7a82f7dd897767e46c48a94b8ee8.
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r-- | randr/rrcrtc.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index c2f696332..98206a2b9 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -93,8 +93,6 @@ RRCrtcCreate (ScreenPtr pScreen, void *devPrivate) pixman_transform_init_identity (&crtc->transform); pixman_f_transform_init_identity (&crtc->f_transform); pixman_f_transform_init_identity (&crtc->f_inverse); - pixman_f_transform_init_identity (&crtc->f_sprite_position); - pixman_f_transform_init_identity (&crtc->f_sprite_image_inverse); if (!AddResource (crtc->id, RRCrtcType, (pointer) crtc)) return NULL; @@ -233,21 +231,15 @@ RRCrtcNotify (RRCrtcPtr crtc, RRTransformCopy (&crtc->client_current_transform, transform); RRCrtcChanged (crtc, TRUE); } - if (crtc->changed && mode) { RRTransformCompute (x, y, mode->mode.width, mode->mode.height, rotation, &crtc->client_current_transform, - &crtc->client_sprite_f_position_transform, - &crtc->client_sprite_f_image_transform, &crtc->transform, &crtc->f_transform, - &crtc->f_inverse, &crtc->f_sprite_position, - &crtc->f_sprite_image_inverse, - NULL); + &crtc->f_inverse); } - return TRUE; } @@ -519,7 +511,7 @@ RRCrtcGammaNotify (RRCrtcPtr crtc) } static void -RRModeGetScanoutSize (RRModePtr mode, struct pixman_f_transform *transform, +RRModeGetScanoutSize (RRModePtr mode, PictTransformPtr transform, int *width, int *height) { BoxRec box; @@ -535,7 +527,7 @@ RRModeGetScanoutSize (RRModePtr mode, struct pixman_f_transform *transform, box.x2 = mode->mode.width; box.y2 = mode->mode.height; - pixman_f_transform_bounds (transform, &box); + pixman_transform_bounds (transform, &box); *width = box.x2 - box.x1; *height = box.y2 - box.y1; } @@ -546,7 +538,7 @@ RRModeGetScanoutSize (RRModePtr mode, struct pixman_f_transform *transform, void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height) { - RRModeGetScanoutSize (crtc->mode, &crtc->f_transform, width, height); + return RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height); } /* @@ -932,12 +924,9 @@ ProcRRSetCrtcConfig (ClientPtr client) mode->mode.width, mode->mode.height, rotation, &crtc->client_pending_transform, - &crtc->client_sprite_f_position_transform, - &crtc->client_sprite_f_image_transform, - &transform, &f_transform, &f_inverse, NULL, NULL, NULL); + &transform, &f_transform, &f_inverse); - RRModeGetScanoutSize (mode, &f_transform, - &source_width, &source_height); + RRModeGetScanoutSize (mode, &transform, &source_width, &source_height); if (stuff->x + source_width > pScreen->width) { client->errorValue = stuff->x; |