From dd0fb435a0168d4041ecd81024d6493295651c61 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 3 Oct 2006 21:03:10 -0700 Subject: Add mode origins and output options. --- src/XrrCrtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/XrrCrtc.c') 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; -- cgit v1.2.3