summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2007-02-15 16:56:11 -0800
committerKeith Packard <keithp@neko.keithp.com>2007-02-15 16:56:11 -0800
commitac82ee50f3938b7b4d6dbcec850d38500258bfe0 (patch)
treeb3d1c40dd0916421042cacc1a085a5ace0d942a7 /src
parent9c4fea702a0382689898fc14cbdab456fb18c403 (diff)
Must pass size information in SetCrtcGamma request.
Diffstat (limited to 'src')
-rw-r--r--src/XrrCrtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index 1fa5cf7..5e5c813 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -253,6 +253,7 @@ XRRSetCrtcGamma (Display *dpy, RRCrtc crtc, XRRCrtcGamma *crtc_gamma)
req->reqType = info->codes->major_opcode;
req->randrReqType = X_RRSetCrtcGamma;
req->crtc = crtc;
+ req->size = crtc_gamma->size;
req->length += (crtc_gamma->size * 2 * 3 + 3) >> 2;
/*
* Note this assumes the structure was allocated with XRRAllocGamma,