diff options
author | Eric Anholt <eric@anholt.net> | 2016-02-01 13:48:43 -0800 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-02-08 16:13:12 -0500 |
commit | c717994102c1e190c0131b57915693b951ed81b7 (patch) | |
tree | 81308a890449c80cfbc25770e2828dadcb77842d /t_composite.c | |
parent | 604e3bbe6d8d96bec284a83c08c5cc5f159a243c (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_composite.c')
-rw-r--r-- | t_composite.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t_composite.c b/t_composite.c index 73133db..eec0033 100644 --- a/t_composite.c +++ b/t_composite.c @@ -27,13 +27,13 @@ /* Test a composite of a given operation, source, mask, and destination picture. * Fills the window, and samples from the 0,0 pixel corner. */ -Bool +bool composite_test(Display *dpy, picture_info *win, picture_info *dst, const int *op, int num_op, const picture_info **src_color, int num_src, const picture_info **mask_color, int num_mask, const picture_info **dst_color, int num_dst, - Bool componentAlpha) + bool componentAlpha) { color4d expected, tested, tdst, tmsk; char testname[40]; @@ -59,7 +59,7 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst, if (componentAlpha) { XRenderPictureAttributes pa; - pa.component_alpha = TRUE; + pa.component_alpha = true; XRenderChangePicture(dpy, mask_color[m]->pict, CPComponentAlpha, &pa); } @@ -90,7 +90,7 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst, if (componentAlpha) { XRenderPictureAttributes pa; - pa.component_alpha = FALSE; + pa.component_alpha = false; XRenderChangePicture(dpy, mask_color[m]->pict, CPComponentAlpha, &pa); } @@ -157,7 +157,7 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst, mask_color[m]->name, dst->name); XDestroyImage(image); - return FALSE; + return false; } } } @@ -167,5 +167,5 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst, } } - return TRUE; + return true; } |