From 5f93d019dc6311dd16b6792ffb60dbfc45ef3d08 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 25 Jan 2010 15:47:11 +0000 Subject: uxa: Adjust uxa_get_color_for_pixmap to match prototype The prototype says this function returns a Bool and not just an int, so be pedantic and return TRUE/FALSE. Signed-off-by: Chris Wilson --- uxa/uxa-render.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index bffe64f73..826602bc5 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -238,7 +238,7 @@ uxa_get_rgba_from_pixel(CARD32 pixel, return TRUE; } -int +Bool uxa_get_color_for_pixmap (PixmapPtr pixmap, CARD32 src_format, CARD32 dst_format, @@ -250,13 +250,13 @@ uxa_get_color_for_pixmap (PixmapPtr pixmap, if (!uxa_get_rgba_from_pixel(*pixel, &red, &green, &blue, &alpha, src_format)) - return 0; + return FALSE; if (!uxa_get_pixel_from_rgba(pixel, red, green, blue, alpha, dst_format)) - return 0; + return FALSE; - return 1; + return TRUE; } static int -- cgit v1.2.3