diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-25 15:47:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-25 15:48:48 +0000 |
commit | 5f93d019dc6311dd16b6792ffb60dbfc45ef3d08 (patch) | |
tree | c54200d970be8553fe7d32fb2df945af1a7d155a | |
parent | dc6522dd491831f3843606e3ed57cc01fe2c804c (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | uxa/uxa-render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index bffe64f7..826602bc 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 |