summaryrefslogtreecommitdiff
path: root/src/XrrCrtc.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2006-10-03 21:03:10 -0700
committerKeith Packard <keithp@guitar.keithp.com>2006-10-03 21:03:10 -0700
commitdd0fb435a0168d4041ecd81024d6493295651c61 (patch)
tree2702741708910e7ad682aa7d878c335507004617 /src/XrrCrtc.c
parentcb1dbb7c2446ddf514ee709fba940cc4e75438a0 (diff)
Add mode origins and output options.
Diffstat (limited to 'src/XrrCrtc.c')
-rw-r--r--src/XrrCrtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index a1372a1..535327e 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -121,7 +121,7 @@ XRRSetCrtcConfig (Display *dpy,
int x, int y,
RRMode mode,
Rotation rotation,
- RROutput *outputs,
+ XRROutputConfig *outputs,
int noutputs)
{
XExtDisplayInfo *info = XRRFindDisplay(dpy);
@@ -135,7 +135,7 @@ XRRSetCrtcConfig (Display *dpy,
GetReq (RRSetCrtcConfig, req);
req->reqType = info->codes->major_opcode;
req->randrReqType = X_RRSetCrtcConfig;
- req->length += noutputs;
+ req->length += noutputs << 1;
req->crtc = crtc;
req->timestamp = timestamp;
req->configTimestamp = resources->configTimestamp;
@@ -143,7 +143,7 @@ XRRSetCrtcConfig (Display *dpy,
req->y = y;
req->mode = mode;
req->rotation = rotation;
- Data32 (dpy, outputs, noutputs << 2);
+ Data32 (dpy, outputs, noutputs << 3);
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
rep.status = RRSetConfigFailed;