summaryrefslogtreecommitdiff
path: root/print_render.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2001-10-15 16:33:22 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-04 18:13:24 -0700
commit30392c1e635663e5b3eb5771d8ce4c852cada4b8 (patch)
tree969059d432863edb9ae608f90a20047c94c5902d /print_render.c
parent062412a066cc62635c1d1eb99999ee774775ca6f (diff)
downloadxscope-30392c1e635663e5b3eb5771d8ce4c852cada4b8.tar.gz
Add SHM decoding
Diffstat (limited to 'print_render.c')
-rw-r--r--print_render.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/print_render.c b/print_render.c
index f7cdab4..78956d2 100644
--- a/print_render.c
+++ b/print_render.c
@@ -65,9 +65,13 @@ RenderQueryPictFormats (FD fd, unsigned char *buf)
}
RenderQueryPictFormatsReply (FD fd, unsigned char *buf)
{
- short n;
- long m;
- long k;
+ long n;
+ long f;
+ long s;
+ long d;
+ long v;
+ long m;
+ long k;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* RenderRequest reply */ ;
PrintField(RBf, 1, 1, RENDERREPLY, RENDERREPLYHEADER) /* RenderQueryVersion reply */;
@@ -75,6 +79,12 @@ RenderQueryPictFormatsReply (FD fd, unsigned char *buf)
return;
printfield(buf, 2, 2, CARD16, "sequence number");
printfield(buf, 4, 4, DVALUE4(0), "reply length");
+ n = ILong (&buf[8]);
+ f = ILong (&buf[12]);
+ s = ILong (&buf[16]);
+ d = ILong (&buf[20]);
+ v = ILong (&buf[24]);
+ PrintList (&buf[32], (long) f, PICTFORMINFO, "pict-formats");
}
RenderQueryPictIndexValues (FD fd, unsigned char *buf)
{