diff options
author | Eric Anholt <anholt@freebsd.org> | 2005-08-30 03:01:38 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2005-08-30 03:01:38 +0000 |
commit | e321f9e7ff7de9aa702e33a22743b55c8bb66953 (patch) | |
tree | 7e3cddaaf67b9922f36b697ff5e68306e4405b52 /fb | |
parent | 20813d3af065f9b719b39d2e7a3382b8fa278a48 (diff) |
Apply the xserver patch from vektor for bug #4208: Use NULL for pointers
instead of 0.
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fbbltone.c | 4 | ||||
-rw-r--r-- | fb/fbcompose.c | 38 | ||||
-rw-r--r-- | fb/fbpict.c | 2 |
3 files changed, 22 insertions, 22 deletions
diff --git a/fb/fbbltone.c b/fb/fbbltone.c index 59ba3932e..48f998651 100644 --- a/fb/fbbltone.c +++ b/fb/fbbltone.c @@ -232,11 +232,11 @@ fbBltOne (FbStip *src, /* * Get pointer to stipple mask array for this depth */ - fbBits = 0; /* unused */ + fbBits = NULL; /* unused */ if (pixelsPerDst <= 8) fbBits = fbStippleTable[pixelsPerDst]; #ifndef FBNOPIXADDR - fbLane = 0; + fbLane = NULL; if (transparent && fgand == 0 && dstBpp >= 8) fbLane = fbLaneTable[dstBpp]; #endif diff --git a/fb/fbcompose.c b/fb/fbcompose.c index 34a34aa7c..655a53afe 100644 --- a/fb/fbcompose.c +++ b/fb/fbcompose.c @@ -1,5 +1,5 @@ /* - * $XdotOrg: xc/programs/Xserver/fb/fbcompose.c,v 1.10 2005/07/01 10:05:42 lars Exp $ + * $XdotOrg: xc/programs/Xserver/fb/fbcompose.c,v 1.19 2005/08/12 18:50:33 sandmann Exp $ * $XFree86: xc/programs/Xserver/fb/fbcompose.c,v 1.17tsi Exp $ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. @@ -558,7 +558,7 @@ static fetchProc fetchProcForPicture (PicturePtr pict) case PICT_a1: return fbFetch_a1; case PICT_g1: return fbFetch_g1; default: - return 0; + return NULL; } } @@ -986,7 +986,7 @@ static fetchPixelProc fetchPixelProcForPicture (PicturePtr pict) case PICT_a1: return fbFetchPixel_a1; case PICT_g1: return fbFetchPixel_g1; default: - return 0; + return NULL; } } @@ -1422,7 +1422,7 @@ static storeProc storeProcForPicture (PicturePtr pict) case PICT_a1: return fbStore_a1; case PICT_g1: return fbStore_g1; default: - return 0; + return NULL; } } @@ -1926,7 +1926,7 @@ fbCombineConjointXorU (CARD32 *dest, const CARD32 *src, int width) static CombineFuncU fbCombineFuncU[] = { fbCombineClear, fbCombineSrcU, - 0, /* CombineDst */ + NULL, /* CombineDst */ fbCombineOverU, fbCombineOverReverseU, fbCombineInU, @@ -1938,11 +1938,11 @@ static CombineFuncU fbCombineFuncU[] = { fbCombineXorU, fbCombineAddU, fbCombineSaturateU, - 0, - 0, + NULL, + NULL, fbCombineClear, fbCombineSrcU, - 0, /* CombineDst */ + NULL, /* CombineDst */ fbCombineDisjointOverU, fbCombineSaturateU, /* DisjointOverReverse */ fbCombineDisjointInU, @@ -1952,13 +1952,13 @@ static CombineFuncU fbCombineFuncU[] = { fbCombineDisjointAtopU, fbCombineDisjointAtopReverseU, fbCombineDisjointXorU, - 0, - 0, - 0, - 0, + NULL, + NULL, + NULL, + NULL, fbCombineClear, fbCombineSrcU, - 0, /* CombineDst */ + NULL, /* CombineDst */ fbCombineConjointOverU, fbCombineConjointOverReverseU, fbCombineConjointInU, @@ -3319,10 +3319,10 @@ fbCompositeRect (const FbComposeData *data, CARD32 *scanline_buffer) CARD32 *dest_buffer = src_buffer + data->width; int i; scanStoreProc store; - scanFetchProc fetchSrc = 0, fetchMask = 0, fetchDest = 0; + scanFetchProc fetchSrc = NULL, fetchMask = NULL, fetchDest = NULL; if (data->op == PictOpClear) - fetchSrc = 0; + fetchSrc = NULL; else if (!data->src->pDrawable) { if (data->src->pSourcePict) fetchSrc = fbFetchSourcePict; @@ -3350,7 +3350,7 @@ fbCompositeRect (const FbComposeData *data, CARD32 *scanline_buffer) else fetchMask = fbFetchTransformed; } else { - fetchMask = 0; + fetchMask = NULL; } if (data->dest->alphaMap) { @@ -3361,7 +3361,7 @@ fbCompositeRect (const FbComposeData *data, CARD32 *scanline_buffer) store = fbStore; } if (data->op == PictOpClear || data->op == PictOpSrc) - fetchDest = 0; + fetchDest = NULL; if (fetchSrc && fetchMask && data->mask && data->mask->componentAlpha && PICT_FORMAT_RGB(data->mask->format)) { CARD32 *mask_buffer = dest_buffer + data->width; @@ -3397,8 +3397,8 @@ fbCompositeRect (const FbComposeData *data, CARD32 *scanline_buffer) fetchMask(data->mask, data->xMask, data->yMask, data->width, dest_buffer); composeFunctions.combineMaskU(src_buffer, dest_buffer, data->width); } - fetchSrc = 0; - fetchMask = 0; + fetchSrc = NULL; + fetchMask = NULL; } for (i = 0; i < data->height; ++i) diff --git a/fb/fbpict.c b/fb/fbpict.c index ea45480b2..0d336fd12 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -841,7 +841,7 @@ fbComposite (CARD8 op, RegionRec region; int n; BoxPtr pbox; - CompositeFunc func = 0; + CompositeFunc func = NULL; Bool srcRepeat = pSrc->pDrawable && pSrc->repeat == RepeatNormal; Bool maskRepeat = FALSE; Bool srcAlphaMap = pSrc->alphaMap != 0; |