diff options
author | Keith Packard <keithp@keithp.com> | 2002-05-15 05:26:19 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-04 18:14:08 -0700 |
commit | 5a0de81b2922b2f2c174f136b0b5ade2440562a8 (patch) | |
tree | 3ef3e6f78ac304618a18478a7c8a5346c2c2b1a6 /print_render.c | |
parent | 6e2099e8fa4d192d1dfa324454f538c3017c1988 (diff) |
Add lots more Render stuff
Diffstat (limited to 'print_render.c')
-rw-r--r-- | print_render.c | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/print_render.c b/print_render.c index 4e3aacb..398020f 100644 --- a/print_render.c +++ b/print_render.c @@ -210,6 +210,7 @@ RenderScale (FD fd, unsigned char *buf) } RenderTrapezoids (FD fd, unsigned char *buf) { + int n; PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ; PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ; if (Verbose < 1) @@ -218,9 +219,19 @@ RenderTrapezoids (FD fd, unsigned char *buf) PrintField(SBf, 0, 4, CARD32, "sequence number"); printfield(buf, 2, 2, CONST2(2), "request length"); + PrintField (buf, 4, 1, PICTOP, "op"); + PrintField(buf, 8, 4, PICTURE, "source"); + PrintField(buf, 12, 4, PICTURE, "dest"); + PrintField(buf, 16, 4, PICTFORMAT, "mask format"); + PrintField(buf, 20, 2, CARD16, "source x"); + PrintField(buf, 22, 2, CARD16, "source y"); + n = (CS[fd].requestLen - 6) / 10; + PrintList(&buf[24], (long)n, TRAPEZOID, "trapezoids"); } + RenderTriangles (FD fd, unsigned char *buf) { + long n; PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ; PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ; if (Verbose < 1) @@ -229,6 +240,14 @@ RenderTriangles (FD fd, unsigned char *buf) PrintField(SBf, 0, 4, CARD32, "sequence number"); printfield(buf, 2, 2, CONST2(2), "request length"); + PrintField (buf, 4, 1, PICTOP, "op"); + PrintField(buf, 8, 4, PICTURE, "source"); + PrintField(buf, 12, 4, PICTURE, "dest"); + PrintField(buf, 16, 4, PICTFORMAT, "mask format"); + PrintField(buf, 20, 2, CARD16, "source x"); + PrintField(buf, 22, 2, CARD16, "source y"); + n = (CS[fd].requestLen - 6) / 6; + PrintList(&buf[24], (long)n, TRIANGLE, "triangles"); } RenderTriStrip (FD fd, unsigned char *buf) { @@ -319,6 +338,7 @@ RenderFreeGlyphSet (FD fd, unsigned char *buf) PrintField(SBf, 0, 4, CARD32, "sequence number"); printfield(buf, 2, 2, CONST2(2), "request length"); + PrintField(buf, 4, 4, GLYPHSET, "glyphset"); } extern char Leader[]; @@ -377,6 +397,7 @@ RenderAddGlyphsFromPicture (FD fd, unsigned char *buf) } RenderFreeGlyphs (FD fd, unsigned char *buf) { + unsigned short n; PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ; PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ; if (Verbose < 1) @@ -385,6 +406,9 @@ RenderFreeGlyphs (FD fd, unsigned char *buf) PrintField(SBf, 0, 4, CARD32, "sequence number"); printfield(buf, 2, 2, CONST2(2), "request length"); + PrintField(buf, 4, 4, GLYPHSET, "glyphset"); + n = (IShort(&buf[2]) - 2); + (void)PrintList(&buf[8], (long)n, CARD32, "glyphs"); } extern char Leader[]; @@ -510,16 +534,55 @@ RenderFillRectangles (FD fd, unsigned char *buf) } RenderPictFormatError (fd, buf) { + PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ; + if (Verbose < 1) + return; + printfield(buf, 2, 2, CARD16, "sequence number"); + PrintField(buf, 4, 4, PICTFORMAT, "format"); + PrintField(buf, 8, 2, CARD16, "minor opcode"); + PrintField(buf, 10, 1, CARD8, "major opcode"); } + RenderPictureError (fd, buf) { + PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ; + if (Verbose < 1) + return; + printfield(buf, 2, 2, CARD16, "sequence number"); + PrintField(buf, 4, 4, PICTURE, "picture"); + PrintField(buf, 8, 2, CARD16, "minor opcode"); + PrintField(buf, 10, 1, CARD8, "major opcode"); } + RenderPictOpError (fd, buf) { + PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ; + if (Verbose < 1) + return; + printfield(buf, 2, 2, CARD16, "sequence number"); + PrintField(buf, 4, 4, PICTOP, "pictop"); + PrintField(buf, 8, 2, CARD16, "minor opcode"); + PrintField(buf, 10, 1, CARD8, "major opcode"); } + RenderGlyphSetError (fd, buf) { + PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ; + if (Verbose < 1) + return; + printfield(buf, 2, 2, CARD16, "sequence number"); + PrintField(buf, 4, 4, GLYPHSET, "glyphset"); + PrintField(buf, 8, 2, CARD16, "minor opcode"); + PrintField(buf, 10, 1, CARD8, "major opcode"); } + RenderGlyphError (fd, buf) { + PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ; + if (Verbose < 1) + return; + printfield(buf, 2, 2, CARD16, "sequence number"); + PrintField(buf, 4, 4, CARD32, "glyph"); + PrintField(buf, 8, 2, CARD16, "minor opcode"); + PrintField(buf, 10, 1, CARD8, "major opcode"); } |