summaryrefslogtreecommitdiff
path: root/app/x11perf/do_traps.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-23 20:36:41 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-23 20:36:41 +0000
commit553b1d45ff40ba4cc67f34e09dccc0680d0693d7 (patch)
tree1ad659f8e96695bf83535ac87ee6c8523e3127a1 /app/x11perf/do_traps.c
parentc808db69d2e2644497e9a50525971c456e3a0eb5 (diff)
update to x11perf 1.5.1
Diffstat (limited to 'app/x11perf/do_traps.c')
-rw-r--r--app/x11perf/do_traps.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/x11perf/do_traps.c b/app/x11perf/do_traps.c
index 01a64ed65..739b7f7c6 100644
--- a/app/x11perf/do_traps.c
+++ b/app/x11perf/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;
}