summaryrefslogtreecommitdiff
path: root/src/xftdraw.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-29 18:45:48 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-29 18:45:48 -0200
commit5957fdd9ba2aba60e90a30bc3744f76ddb27b8d2 (patch)
tree3040f3b568090bd929f44566a6115e131f6d714d /src/xftdraw.c
parentcb80b4493e116229d8cc46507dec0fed6febd949 (diff)
downloadxorg-lib-libXft-5957fdd9ba2aba60e90a30bc3744f76ddb27b8d2.tar.gz
Janitor: Correct make distcheck and sparse warnings.
Use only one toplevel .gitignore file. It was tempting to also modify the code to not, first check if xrender is >= 0.8.2, and then, if failing, check for libXrender functions with different build options, but left as is, as it could be somehow useful at least as an example of being backwards compatible.
Diffstat (limited to 'src/xftdraw.c')
-rw-r--r--src/xftdraw.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/xftdraw.c b/src/xftdraw.c
index 46e3f43..ab51749 100644
--- a/src/xftdraw.c
+++ b/src/xftdraw.c
@@ -134,7 +134,7 @@ XftDrawCreate (Display *dpy,
draw = (XftDraw *) malloc (sizeof (XftDraw));
if (!draw)
- return 0;
+ return NULL;
draw->dpy = dpy;
draw->drawable = drawable;
@@ -144,7 +144,7 @@ XftDrawCreate (Display *dpy,
draw->visual = visual;
draw->colormap = colormap;
draw->render.pict = 0;
- draw->core.gc = 0;
+ draw->core.gc = NULL;
draw->core.use_pixmap = 0;
draw->clip_type = XftClipTypeNone;
draw->subwindow_mode = ClipByChildren;
@@ -160,16 +160,16 @@ XftDrawCreateBitmap (Display *dpy,
draw = (XftDraw *) malloc (sizeof (XftDraw));
if (!draw)
- return 0;
+ return NULL;
draw->dpy = dpy;
draw->drawable = (Drawable) bitmap;
- draw->screen = _XftDrawScreen (dpy, bitmap, 0);
+ draw->screen = _XftDrawScreen (dpy, bitmap, NULL);
draw->depth = 1;
draw->bits_per_pixel = 1;
- draw->visual = 0;
+ draw->visual = NULL;
draw->colormap = 0;
draw->render.pict = 0;
- draw->core.gc = 0;
+ draw->core.gc = NULL;
draw->core.use_pixmap = 0;
draw->clip_type = XftClipTypeNone;
draw->subwindow_mode = ClipByChildren;
@@ -186,16 +186,16 @@ XftDrawCreateAlpha (Display *dpy,
draw = (XftDraw *) malloc (sizeof (XftDraw));
if (!draw)
- return 0;
+ return NULL;
draw->dpy = dpy;
draw->drawable = (Drawable) pixmap;
- draw->screen = _XftDrawScreen (dpy, pixmap, 0);
+ draw->screen = _XftDrawScreen (dpy, pixmap, NULL);
draw->depth = depth;
draw->bits_per_pixel = 0; /* don't find out until we need it */
- draw->visual = 0;
+ draw->visual = NULL;
draw->colormap = 0;
draw->render.pict = 0;
- draw->core.gc = 0;
+ draw->core.gc = NULL;
draw->core.use_pixmap = 0;
draw->clip_type = XftClipTypeNone;
draw->subwindow_mode = ClipByChildren;
@@ -209,9 +209,9 @@ _XftDrawFormat (XftDraw *draw)
XftDisplayInfo *info = _XftDisplayInfoGet (draw->dpy, True);
if (!info || !info->hasRender)
- return 0;
+ return NULL;
- if (draw->visual == 0)
+ if (draw->visual == NULL)
{
XRenderPictFormat pf;
@@ -244,7 +244,7 @@ XftDrawChange (XftDraw *draw,
if (draw->core.gc)
{
XFreeGC (draw->dpy, draw->core.gc);
- draw->core.gc = 0;
+ draw->core.gc = NULL;
}
}
@@ -818,7 +818,7 @@ _X_EXPORT Bool
XftDrawSetClip (XftDraw *draw,
Region r)
{
- Region n = 0;
+ Region n = NULL;
/*
* Check for quick exits
@@ -907,7 +907,7 @@ XftDrawSetClipRectangles (XftDraw *draw,
_Xconst XRectangle *rects,
int n)
{
- XftClipRect *new = 0;
+ XftClipRect *new = NULL;
/*
* Check for quick exit