summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.gitignore6
-rw-r--r--src/Filter.c12
-rw-r--r--src/Makefile.am4
-rw-r--r--src/Poly.c4
-rw-r--r--src/Xrender.c26
5 files changed, 23 insertions, 29 deletions
diff --git a/src/.gitignore b/src/.gitignore
deleted file mode 100644
index 94e77db..0000000
--- a/src/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-.deps
-.libs
-libXrender.la
-*.lo
-Makefile
-Makefile.in
diff --git a/src/Filter.c b/src/Filter.c
index 45a481b..76c8cfa 100644
--- a/src/Filter.c
+++ b/src/Filter.c
@@ -40,14 +40,14 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
long nbytes, nbytesAlias, nbytesName;
if (!RenderHasExtension (info))
- return 0;
+ return NULL;
if (!XRenderQueryFormats (dpy))
- return 0;
+ return NULL;
xri = info->info;
if (xri->minor_version < 6)
- return 0;
+ return NULL;
LockDisplay (dpy);
GetReq (RenderQueryFilters, req);
@@ -58,7 +58,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
{
UnlockDisplay (dpy);
SyncHandle ();
- return 0;
+ return NULL;
}
/*
* Compute total number of bytes for filter names
@@ -82,7 +82,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
_XEatData (dpy, (unsigned long) rep.length << 2);
UnlockDisplay (dpy);
SyncHandle ();
- return 0;
+ return NULL;
}
/*
@@ -146,7 +146,7 @@ XRenderSetPictureFilter (Display *dpy,
req->nbytes = nbytes;
req->length += ((nbytes + 3) >> 2) + nparams;
Data (dpy, filter, nbytes);
- Data (dpy, params, nparams << 2);
+ Data (dpy, (_Xconst char *)params, nparams << 2);
UnlockDisplay(dpy);
SyncHandle();
}
diff --git a/src/Makefile.am b/src/Makefile.am
index 19dab07..7482017 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = $(RENDER_CFLAGS) $(X_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include/X11/extensions $(MALLOC_ZERO_CFLAGS)
+AM_CFLAGS = $(RENDER_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include/X11/extensions $(MALLOC_ZERO_CFLAGS)
lib_LTLIBRARIES = libXrender.la
@@ -17,7 +17,7 @@ libXrender_la_SOURCES = AddTrap.c \
Xrender.c \
Xrenderint.h
-libXrender_la_LIBADD = @X_LIBS@ -lX11
+libXrender_la_LIBADD = $(RENDER_LIBS)
# -version-number requires libtool >= 1.5
libXrender_la_LDFLAGS = -version-number 1:3:0 -no-undefined
diff --git a/src/Poly.c b/src/Poly.c
index ee461d7..16599b2 100644
--- a/src/Poly.c
+++ b/src/Poly.c
@@ -99,7 +99,7 @@ XRenderComputeTrapezoids (Edge *edges,
qsort (edges, nedges, sizeof (Edge), CompareEdge);
y = edges[0].edge.p1.y;
- active = 0;
+ active = NULL;
inactive = 0;
while (active || inactive < nedges)
{
@@ -112,7 +112,7 @@ XRenderComputeTrapezoids (Edge *edges,
/* move this edge into the active list */
inactive++;
e->next = active;
- e->prev = 0;
+ e->prev = NULL;
if (active)
active->prev = e;
active = e;
diff --git a/src/Xrender.c b/src/Xrender.c
index 3a51663..c763076 100644
--- a/src/Xrender.c
+++ b/src/Xrender.c
@@ -346,7 +346,7 @@ _XRenderFindFormat (XRenderInfo *xri, PictFormat format)
for (nf = 0; nf < xri->nformat; nf++)
if (xri->format[nf].id == format)
return &xri->format[nf];
- return 0;
+ return NULL;
}
static Visual *
@@ -601,15 +601,15 @@ XRenderFindVisualFormat (Display *dpy, _Xconst Visual *visual)
int nv;
XRenderInfo *xri;
XRenderVisual *xrv;
-
- RenderCheckExtension (dpy, info, 0);
+
+ RenderCheckExtension (dpy, info, NULL);
if (!XRenderQueryFormats (dpy))
- return 0;
+ return NULL;
xri = info->info;
for (nv = 0, xrv = xri->visual; nv < xri->nvisual; nv++, xrv++)
if (xrv->visual == visual)
return xrv->format;
- return 0;
+ return NULL;
}
XRenderPictFormat *
@@ -621,10 +621,10 @@ XRenderFindFormat (Display *dpy,
XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
int nf;
XRenderInfo *xri;
-
- RenderCheckExtension (dpy, info, 0);
+
+ RenderCheckExtension (dpy, info, NULL);
if (!XRenderQueryFormats (dpy))
- return 0;
+ return NULL;
xri = info->info;
for (nf = 0; nf < xri->nformat; nf++)
{
@@ -667,7 +667,7 @@ XRenderFindFormat (Display *dpy,
if (count-- == 0)
return &xri->format[nf];
}
- return 0;
+ return NULL;
}
XRenderPictFormat *
@@ -820,7 +820,7 @@ XRenderFindStandardFormat (Display *dpy,
standardFormats[format].mask,
&standardFormats[format].templ,
0);
- return 0;
+ return NULL;
}
XIndexValue *
@@ -834,7 +834,7 @@ XRenderQueryPictIndexValues(Display *dpy,
XIndexValue *values;
int nbytes, nread, rlength, i;
- RenderCheckExtension (dpy, info, 0);
+ RenderCheckExtension (dpy, info, NULL);
LockDisplay (dpy);
GetReq (RenderQueryPictIndexValues, req);
@@ -845,7 +845,7 @@ XRenderQueryPictIndexValues(Display *dpy,
{
UnlockDisplay (dpy);
SyncHandle ();
- return 0;
+ return NULL;
}
/* request data length */
@@ -862,7 +862,7 @@ XRenderQueryPictIndexValues(Display *dpy,
_XEatData (dpy, nbytes);
UnlockDisplay (dpy);
SyncHandle ();
- return 0;
+ return NULL;
}
/* read the values one at a time and convert */