diff options
Diffstat (limited to 'src/Filter.c')
-rw-r--r-- | src/Filter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Filter.c b/src/Filter.c index 3ac660a..5fe9df9 100644 --- a/src/Filter.c +++ b/src/Filter.c @@ -25,7 +25,7 @@ #include <config.h> #endif #include "Xrenderint.h" - + XFilters * XRenderQueryFilters (Display *dpy, Drawable drawable) { @@ -38,7 +38,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) char len; int i; long nbytes, nbytesAlias, nbytesName; - + if (!RenderHasExtension (info)) return NULL; @@ -48,7 +48,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) xri = info->info; if (xri->minor_version < 6) return NULL; - + LockDisplay (dpy); GetReq (RenderQueryFilters, req); req->reqType = info->codes->major_opcode; @@ -68,7 +68,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) if (rep.numAliases & 1) nbytesAlias += 2; nbytesName = nbytes - nbytesAlias; - + /* * Allocate one giant block for the whole data structure */ @@ -92,7 +92,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) * numAliases short alias values * nbytesName char strings */ - + filters->nfilter = rep.numFilters; filters->nalias = rep.numAliases; filters->filter = (char **) (filters + 1); @@ -121,7 +121,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) if (i & 3) _XEatData (dpy, 4 - (i & 3)); - + UnlockDisplay (dpy); SyncHandle (); return filters; |