From ed0233e46fd2fe41b1c10e525423e90e0fa2bdc8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 26 Aug 2012 20:51:03 -0700 Subject: spec: Correct length calculation in encoding of gamma lists The padding for RRGetCrtcGamma & RRSetCrtcGamma is a variable p, not a fixed 2 bytes, since it depends on how many values are included in the lists. Signed-off-by: Alan Coopersmith --- randrproto.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/randrproto.txt b/randrproto.txt index 27fc2f3..e0b67e3 100644 --- a/randrproto.txt +++ b/randrproto.txt @@ -2569,7 +2569,7 @@ A.2.1 Protocol Requests added with version 1.2 1 1 Reply 1 unused 2 CARD16 sequence number - 4 (6n+2)/4 reply length + 4 (6n+p)/4 reply length 2 n size 20 unused 2n LISTofCARD16 red @@ -2581,7 +2581,7 @@ A.2.1 Protocol Requests added with version 1.2 RRSetCrtcGamma 1 CARD8 major opcode 1 24 RandR opcode - 2 3+(6n+2)/4 length + 2 3+(6n+p)/4 length 4 CRTC crtc 2 n size 2 unused -- cgit v1.2.3