summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-03-16 14:18:29 +0100
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-03-17 11:03:05 -0400
commit7ec023ede155b9dacf574c4323740ef981802aa9 (patch)
tree50c7ff4d70612fbe489d48ce80cd405be2ad5a94
parentc903d03052e1c34478556964338959b34928a388 (diff)
Add CONVERT_8888_TO_8888 and CONVERT_0565_TO_0565 macros
These are useful for macroization
-rw-r--r--pixman/pixman-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index d0bec39..bc41249 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -706,6 +706,10 @@ pixman_region16_copy_from_region32 (pixman_region16_t *dst,
#define CONVERT_0565_TO_8888(s) (CONVERT_0565_TO_0888(s) | 0xff000000)
+/* Trivial versions that are useful in macros */
+#define CONVERT_8888_TO_8888(s) (s)
+#define CONVERT_0565_TO_0565(s) (s)
+
#define PIXMAN_FORMAT_IS_WIDE(f) \
(PIXMAN_FORMAT_A (f) > 8 || \
PIXMAN_FORMAT_R (f) > 8 || \