summaryrefslogtreecommitdiff
path: root/src/FillRects.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/FillRects.c')
-rw-r--r--src/FillRects.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FillRects.c b/src/FillRects.c
index ec88f4b..6e026a7 100644
--- a/src/FillRects.c
+++ b/src/FillRects.c
@@ -39,16 +39,17 @@ XRenderFillRectangles (Display *dpy,
_Xconst XRectangle *rectangles,
int n_rects)
{
- XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
+ XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
xRenderFillRectanglesReq *req;
- long len;
- int n;
RenderSimpleCheckExtension (dpy, info);
LockDisplay(dpy);
while (n_rects)
{
+ long len;
+ int n;
+
GetReq(RenderFillRectangles, req);
req->reqType = info->codes->major_opcode;