mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2025-12-25 17:40:12 +01:00
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 <alan.coopersmith@oracle.com>
This commit is contained in:
parent
ddc00f44df
commit
ed0233e46f
1 changed files with 2 additions and 2 deletions
|
|
@ -2569,7 +2569,7 @@ A.2.1 Protocol Requests added with version 1.2
|
||||||
1 1 Reply
|
1 1 Reply
|
||||||
1 unused
|
1 unused
|
||||||
2 CARD16 sequence number
|
2 CARD16 sequence number
|
||||||
4 (6n+2)/4 reply length
|
4 (6n+p)/4 reply length
|
||||||
2 n size
|
2 n size
|
||||||
20 unused
|
20 unused
|
||||||
2n LISTofCARD16 red
|
2n LISTofCARD16 red
|
||||||
|
|
@ -2581,7 +2581,7 @@ A.2.1 Protocol Requests added with version 1.2
|
||||||
RRSetCrtcGamma
|
RRSetCrtcGamma
|
||||||
1 CARD8 major opcode
|
1 CARD8 major opcode
|
||||||
1 24 RandR opcode
|
1 24 RandR opcode
|
||||||
2 3+(6n+2)/4 length
|
2 3+(6n+p)/4 length
|
||||||
4 CRTC crtc
|
4 CRTC crtc
|
||||||
2 n size
|
2 n size
|
||||||
2 unused
|
2 unused
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue