projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c903d03
)
Add CONVERT_8888_TO_8888 and CONVERT_0565_TO_0565 macros
author
Alexander Larsson
<alexl@redhat.com>
Tue, 16 Mar 2010 13:18:29 +0000
(14:18 +0100)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Wed, 17 Mar 2010 15:03:05 +0000
(11:03 -0400)
These are useful for macroization
pixman/pixman-private.h
patch
|
blob
|
history
diff --git
a/pixman/pixman-private.h
b/pixman/pixman-private.h
index
d0bec39
..
bc41249
100644
(file)
--- 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 || \