[cairo-commit] src/cairo-ft-font.c
Andrea Canciani
ranma42 at kemper.freedesktop.org
Tue Aug 10 00:58:16 PDT 2010
src/cairo-ft-font.c | 7 -------
1 file changed, 7 deletions(-)
New commits:
commit a150371a5d10e03d6c0d781c6fac950a9ac6be18
Author: Nicolaus L Hepler <nlhepler at gmail.com>
Date: Tue Aug 10 09:34:39 2010 +0200
ft-font: Make alpha mapping consistent
Vertical RGB mapping previously forced opaque pixels.
To be consistent with horizontal RGB/BGR and vertical BGR it
should use an alpha equal to the mid channel (green).
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 828c553..67eb275 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -1065,17 +1065,10 @@ _fill_xrender_bitmap(FT_Bitmap *target,
for (x = 0; x < width; x++, src += 1) {
unsigned int pix;
-#if 1
- pix = ((unsigned int)src[0] << 16) |
- ((unsigned int)src[src_pitch] << 8) |
- ((unsigned int)src[src_pitch*2] ) |
- 0xFF000000 ;
-#else
pix = ((unsigned int)src[0] << 16) |
((unsigned int)src[src_pitch] << 8) |
((unsigned int)src[src_pitch*2] ) |
((unsigned int)src[src_pitch] << 24) ;
-#endif
dst[x] = pix;
}
}
More information about the cairo-commit
mailing list