summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-03-12 16:23:42 +0100
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-03-17 11:03:05 -0400
commitc903d03052e1c34478556964338959b34928a388 (patch)
treea30930eb434ca00428d42914c01f6704731632b3
parentde27f45ddd46fc48ec9598f2f177155328d55580 (diff)
Add CONVERT_0565_TO_8888 macro
This lets us simplify some fast paths since we get a consistent naming that always has 8888 and gets some value for alpha.
-rw-r--r--pixman/pixman-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index 9dcdca7..d0bec39 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -704,6 +704,8 @@ pixman_region16_copy_from_region32 (pixman_region16_t *dst,
((((s) << 5) & 0xfc00) | (((s) >> 1) & 0x300)) | \
((((s) << 8) & 0xf80000) | (((s) << 3) & 0x70000)))
+#define CONVERT_0565_TO_8888(s) (CONVERT_0565_TO_0888(s) | 0xff000000)
+
#define PIXMAN_FORMAT_IS_WIDE(f) \
(PIXMAN_FORMAT_A (f) > 8 || \
PIXMAN_FORMAT_R (f) > 8 || \