diff options
author | Julien Cristau <jcristau@debian.org> | 2008-12-01 20:59:39 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-12-01 22:54:28 +0100 |
commit | 83e567f427f68dc4ae2de796a1184748bbe0238e (patch) | |
tree | 45f4a7e79102d63935f0e50d1bcf4b7fc168c582 /include/X11 | |
parent | 908de8fc7228ecc7b02825ebede5fb937f3abf1b (diff) | |
parent | 00f2e30d0b8296668776d62a4c47f96bf95faa08 (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.h | 41 |
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_ */ |