summaryrefslogtreecommitdiff
path: root/include/X11
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-12-01 20:59:39 +0100
committerJulien Cristau <jcristau@debian.org>2008-12-01 22:54:28 +0100
commit83e567f427f68dc4ae2de796a1184748bbe0238e (patch)
tree45f4a7e79102d63935f0e50d1bcf4b7fc168c582 /include/X11
parent908de8fc7228ecc7b02825ebede5fb937f3abf1b (diff)
parent00f2e30d0b8296668776d62a4c47f96bf95faa08 (diff)
Merge branch 'transform-proposal' of git.freedesktop.org:/git/xorg/lib/libXrandr
Conflicts: src/Xrandr.c
Diffstat (limited to 'include/X11')
-rw-r--r--include/X11/extensions/Xrandr.h41
1 files changed, 35 insertions, 6 deletions
diff --git a/include/X11/extensions/Xrandr.h b/include/X11/extensions/Xrandr.h
index 0a75576..892fae8 100644
--- a/include/X11/extensions/Xrandr.h
+++ b/include/X11/extensions/Xrandr.h
@@ -29,6 +29,7 @@
#define _XRANDR_H_
#include <X11/extensions/randr.h>
+#include <X11/extensions/Xrender.h>
#include <X11/Xfuncproto.h>
@@ -371,18 +372,46 @@ XRRSetCrtcGamma (Display *dpy, RRCrtc crtc, XRRCrtcGamma *gamma);
void
XRRFreeGamma (XRRCrtcGamma *gamma);
-/*
+/* Version 1.3 additions */
+
+XRRScreenResources *
+XRRGetScreenResourcesCurrent (Display *dpy, Window window);
+
+void
+XRRSetCrtcTransform (Display *dpy,
+ RRCrtc crtc,
+ XTransform *transform,
+ char *filter,
+ XFixed *params,
+ int nparams);
+
+typedef struct _XRRCrtcTransformAttributes {
+ XTransform pendingTransform;
+ char *pendingFilter;
+ int pendingNparams;
+ XFixed *pendingParams;
+ XTransform currentTransform;
+ 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,
+ 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
*/
int XRRUpdateConfiguration(XEvent *event);
-/* Version 1.3 additions */
-
-XRRScreenResources *
-XRRGetScreenResourcesCurrent (Display *dpy, Window window);
-
_XFUNCPROTOEND
#endif /* _XRANDR_H_ */