[cairo-commit] Changes to 'master'

Christian Biesinger biesi at kemper.freedesktop.org
Thu Feb 16 15:02:49 PST 2006


 src/cairo-xcb-surface.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

New commits:
diff-tree f4d9e5596258284fa7fef01c91ad854544e2b9a2 (from 57edf3f28fa09d2ec24d85dcc91a220d901a4452)
Author: Christian Biesinger <cbiesinger at web.de>
Date:   Thu Feb 16 23:37:16 2006 +0100

    Use TRUE/FALSE instead of 1/0 for boolean values
    (cherry picked from e1703520169e0cf972a6edcaa8660d14806d8c6f commit)

diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index f7e65ff..faa207c 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -321,7 +321,7 @@ _CAIRO_MASK_FORMAT (cairo_format_masks_t
 	    masks->blue_mask == 0x000000ff)
 	{
 	    *format = CAIRO_FORMAT_ARGB32;
-	    return 1;
+	    return TRUE;
 	}
 	if (masks->alpha_mask == 0x00000000 &&
 	    masks->red_mask == 0x00ff0000 &&
@@ -329,25 +329,25 @@ _CAIRO_MASK_FORMAT (cairo_format_masks_t
 	    masks->blue_mask == 0x000000ff)
 	{
 	    *format = CAIRO_FORMAT_RGB24;
-	    return 1;
+	    return TRUE;
 	}
 	break;
     case 8:
 	if (masks->alpha_mask == 0xff)
 	{
 	    *format = CAIRO_FORMAT_A8;
-	    return 1;
+	    return TRUE;
 	}
 	break;
     case 1:
 	if (masks->alpha_mask == 0x1)
 	{
 	    *format = CAIRO_FORMAT_A1;
-	    return 1;
+	    return TRUE;
 	}
 	break;
     }
-    return 0;
+    return FALSE;
 }
 
 static cairo_status_t


More information about the cairo-commit mailing list