summaryrefslogtreecommitdiff
path: root/t_srccoords.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-02-01 13:48:43 -0800
committerAdam Jackson <ajax@redhat.com>2016-02-08 16:13:12 -0500
commitc717994102c1e190c0131b57915693b951ed81b7 (patch)
tree81308a890449c80cfbc25770e2828dadcb77842d /t_srccoords.c
parent604e3bbe6d8d96bec284a83c08c5cc5f159a243c (diff)
Start using stdbool.h instead of Xlib or custom bools.
I have a hard time typing anything else at this point. Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 't_srccoords.c')
-rw-r--r--t_srccoords.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/t_srccoords.c b/t_srccoords.c
index 1eae7d8..c498468 100644
--- a/t_srccoords.c
+++ b/t_srccoords.c
@@ -72,21 +72,21 @@ static void destroy_target_picture(Display *dpy, picture_info *p)
* !test_mask case, to avoid getting CopyArea acceleration (easy to implement)
* rather than a more general Composite implementation.
*/
-Bool
+bool
srccoords_test(Display *dpy, picture_info *win, picture_info *white,
- Bool test_mask)
+ bool test_mask)
{
color4d expected, tested;
int i;
XRenderPictureAttributes pa;
- Bool failed = FALSE;
+ bool failed = false;
int tested_colors[5][5];
picture_info *src;
src = create_target_picture(dpy);
if (src == NULL) {
fprintf(stderr, "couldn't allocate picture for test\n");
- return FALSE;
+ return false;
}
for (i = 0; i < 25; i++) {
@@ -100,12 +100,12 @@ srccoords_test(Display *dpy, picture_info *win, picture_info *white,
* alpha, the mask color should be written to the
* destination.
*/
- pa.component_alpha = TRUE;
+ pa.component_alpha = true;
XRenderChangePicture(dpy, src->pict, CPComponentAlpha,
&pa);
XRenderComposite(dpy, PictOpSrc, white->pict, src->pict,
win->pict, 0, 0, x, y, 0, 0, 1, 1);
- pa.component_alpha = FALSE;
+ pa.component_alpha = false;
XRenderChangePicture(dpy, src->pict, CPComponentAlpha,
&pa);
}
@@ -126,7 +126,7 @@ srccoords_test(Display *dpy, picture_info *win, picture_info *white,
print_fail(test_mask ? "mask coords" : "src coords",
&expected, &tested, x, y,
eval_diff(&win->format->direct, &expected, &tested));
- failed = TRUE;
+ failed = true;
}
}
if (failed) {