summaryrefslogtreecommitdiff
path: root/include/X11
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-03-15 00:33:30 -0700
committerKeith Packard <keithp@keithp.com>2008-03-15 00:33:30 -0700
commita6e5fa4ceb72795380496fcfe62c083866791dc1 (patch)
tree1fc0527defc350d0215aebf0e85def2cda8d24c9 /include/X11
parent2a5fb0e58ed6ee1ff1f0ff00b5bf5b2623991132 (diff)
Support CRTC Transform filters
XRRGetCrtcTransform now returns a giant struct containing all of the transform and filter data. XRRSetCrtcTransform now accepts filter parameters.
Diffstat (limited to 'include/X11')
-rw-r--r--include/X11/extensions/Xrandr.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/include/X11/extensions/Xrandr.h b/include/X11/extensions/Xrandr.h
index 4112b39..32171f9 100644
--- a/include/X11/extensions/Xrandr.h
+++ b/include/X11/extensions/Xrandr.h
@@ -378,17 +378,34 @@ void
XRRSetCrtcTransform (Display *dpy,
RRCrtc crtc,
XTransform *transform,
- XTransform *inverse);
+ XTransform *inverse,
+ char *filter,
+ XFixed *params,
+ int nparams);
+
+typedef struct _XRRCrtcTransformAttributes {
+ XTransform pendingTransform;
+ XTransform pendingInverse;
+ char *pendingFilter;
+ int pendingNparams;
+ XFixed *pendingParams;
+ XTransform currentTransform;
+ XTransform currentInverse;
+ char *currentFilter;
+ int currentNparams;
+ XFixed *currentParams;
+} XRRCrtcTransformAttributes;
+/*
+ * Get current crtc transforms and filters.
+ * Pass *attributes to XFree to free
+ */
Status
XRRGetCrtcTransform (Display *dpy,
RRCrtc crtc,
- XTransform *pendingTransform,
- XTransform *pendingInverse,
- XTransform *currentTransform,
- XTransform *currentInverse);
+ XRRCrtcTransformAttributes **attributes);
-/*
+/*
* intended to take RRScreenChangeNotify, or
* ConfigureNotify (on the root window)
* returns 1 if it is an event type it understands, 0 if not