summaryrefslogtreecommitdiff
path: root/do_traps.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-13 18:55:51 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-13 18:55:51 -0200
commitc7f3c6652e9507e4303fd9ed913c593afb7447f0 (patch)
treebb78edc4cdd137a3f2e7eb6e9d6fdd3b2c9f9706 /do_traps.c
parent828c0323450eadaf040749c010918679f5e4fe53 (diff)
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, and corrects make distcheck.
Diffstat (limited to 'do_traps.c')
-rw-r--r--do_traps.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/do_traps.c b/do_traps.c
index 01a64ed..739b7f7 100644
--- a/do_traps.c
+++ b/do_traps.c
@@ -172,8 +172,8 @@ InitFixedTraps(XParms xp, Parms p, int reps)
maskFormat = XRenderFindStandardFormat (xp->d, std_fmt);
maskPixmap = XCreatePixmap (xp->d, xp->w, WIDTH, HEIGHT, depth);
-
- mask = XRenderCreatePicture (xp->d, maskPixmap, maskFormat, 0, 0);
+
+ mask = XRenderCreatePicture (xp->d, maskPixmap, maskFormat, 0, NULL);
color.red = 0;
color.green = 0;
@@ -185,7 +185,7 @@ InitFixedTraps(XParms xp, Parms p, int reps)
&color, &aablack))
{
XftDrawDestroy (aadraw);
- aadraw = 0;
+ aadraw = NULL;
return 0;
}
color.red = 0xffff;
@@ -198,7 +198,7 @@ InitFixedTraps(XParms xp, Parms p, int reps)
&color, &aawhite))
{
XftDrawDestroy (aadraw);
- aadraw = 0;
+ aadraw = NULL;
return 0;
}
@@ -304,7 +304,7 @@ InitFixedTrapezoids(XParms xp, Parms p, int reps)
0);
}
else
- maskFormat = 0;
+ maskFormat = NULL;
color.red = 0;
color.green = 0;
color.blue = 0;
@@ -315,7 +315,7 @@ InitFixedTrapezoids(XParms xp, Parms p, int reps)
&color, &aablack))
{
XftDrawDestroy (aadraw);
- aadraw = 0;
+ aadraw = NULL;
return 0;
}
color.red = 0xffff;
@@ -328,7 +328,7 @@ InitFixedTrapezoids(XParms xp, Parms p, int reps)
&color, &aawhite))
{
XftDrawDestroy (aadraw);
- aadraw = 0;
+ aadraw = NULL;
return 0;
}