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/randrstr.h | |
parent | 3d4ee25a1e2e0ed2463ceaabea8f5a284a6ddd60 (diff) |
Revert "randr: Add sprite position transforms"
This reverts commit 66294afcab7b7a82f7dd897767e46c48a94b8ee8.
Diffstat (limited to 'randr/randrstr.h')
-rw-r--r-- | randr/randrstr.h | 63 |
1 files changed, 21 insertions, 42 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h index 5e2a3518c..7ea608003 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -55,10 +55,9 @@ #define RANDR_10_INTERFACE 1 #define RANDR_12_INTERFACE 1 #define RANDR_13_INTERFACE 1 /* requires RANDR_12_INTERFACE */ -#define RANDR_14_INTERFACE 1 /* requires RANDR_13_INTERFACE */ #define RANDR_GET_CRTC_INTERFACE 1 -#define RANDR_INTERFACE_VERSION 0x0104 +#define RANDR_INTERFACE_VERSION 0x0103 typedef XID RRMode; typedef XID RROutput; @@ -123,16 +122,9 @@ struct _rrCrtc { Bool transforms; RRTransformRec client_pending_transform; RRTransformRec client_current_transform; - PictTransform client_sprite_position_transform; - PictTransform client_sprite_image_transform; - struct pict_f_transform client_sprite_f_position_transform; - struct pict_f_transform client_sprite_f_image_transform; - PictTransform transform; struct pict_f_transform f_transform; struct pict_f_transform f_inverse; - struct pict_f_transform f_sprite_position; /* crtc from screen */ - struct pict_f_transform f_sprite_image_inverse; /* image from crtc */ }; struct _rrOutput { @@ -241,16 +233,6 @@ typedef Bool (*RRSetConfigProcPtr) (ScreenPtr pScreen, #endif -typedef void (*RRSetCrtcSpriteTransformPtr) (ScreenPtr pScreen, - RRCrtcPtr randr_crtc, - struct pict_f_transform *position_transform, - struct pict_f_transform *image_transform); - -typedef void (*RRGetCrtcSpriteTransformPtr) (ScreenPtr pScreen, - RRCrtcPtr randr_crtc, - struct pict_f_transform *position_transform, - struct pict_f_transform *image_transform); - typedef struct _rrScrPriv { /* * 'public' part of the structure; DDXen fill this in @@ -274,9 +256,7 @@ typedef struct _rrScrPriv { RRGetPanningProcPtr rrGetPanning; RRSetPanningProcPtr rrSetPanning; #endif - RRSetCrtcSpriteTransformPtr rrSetCrtcSpriteTransform; - RRGetCrtcSpriteTransformPtr rrGetCrtcSpriteTransform; - + /* * Private part of the structure; not considered part of the ABI */ @@ -626,6 +606,25 @@ extern _X_EXPORT void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); /* + * Compute the complete transformation matrix including + * client-specified transform, rotation/reflection values and the crtc + * offset. + * + * Return TRUE if the resulting transform is not a simple translation. + */ +extern _X_EXPORT Bool +RRTransformCompute (int x, + int y, + int width, + int height, + Rotation rotation, + RRTransformPtr rr_transform, + + PictTransformPtr transform, + struct pict_f_transform *f_transform, + struct pict_f_transform *f_inverse); + +/* * Return crtc transform */ extern _X_EXPORT RRTransformPtr @@ -701,19 +700,6 @@ ProcRRGetPanning (ClientPtr client); int ProcRRSetPanning (ClientPtr client); -void -RRCrtcSpriteTransformSet(RRCrtcPtr crtc, - PictTransform *position_transform, - PictTransform *image_transform, - struct pict_f_transform *f_position_transform, - struct pict_f_transform *f_image_transform); - -int -ProcRRSetCrtcSpriteTransform (ClientPtr client); - -int -ProcRRGetCrtcSpriteTransform (ClientPtr client); - /* rrdispatch.c */ extern _X_EXPORT Bool RRClientKnowsRates (ClientPtr pClient); @@ -903,13 +889,6 @@ ProcRRConfigureOutputProperty (ClientPtr client); extern _X_EXPORT int ProcRRDeleteOutputProperty (ClientPtr client); -/* rrsprite.c */ -extern _X_EXPORT int -ProcRRSetCrtcSpriteTransform (ClientPtr client); - -extern _X_EXPORT int -ProcRRGetCrtcSpriteTransform (ClientPtr client); - /* rrxinerama.c */ #ifdef XINERAMA extern _X_EXPORT void |