summaryrefslogtreecommitdiff
path: root/src/Trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Trap.c')
-rw-r--r--src/Trap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Trap.c b/src/Trap.c
index 919aaef..636b439 100644
--- a/src/Trap.c
+++ b/src/Trap.c
@@ -37,16 +37,17 @@ XRenderCompositeTrapezoids (Display *dpy,
_Xconst XTrapezoid *traps,
int ntrap)
{
- XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
- xRenderTrapezoidsReq *req;
- int n;
- long len;
+ XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
unsigned long max_req = dpy->bigreq_size ? dpy->bigreq_size : dpy->max_request_size;
RenderSimpleCheckExtension (dpy, info);
LockDisplay(dpy);
while (ntrap)
{
+ xRenderTrapezoidsReq *req;
+ int n;
+ long len;
+
GetReq(RenderTrapezoids, req);
req->reqType = info->codes->major_opcode;
req->renderReqType = X_RenderTrapezoids;