[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo-commit
Subject:    [cairo-commit] src/cairo-ft-font.c
From:       ranma42 () kemper ! freedesktop ! org (Andrea Canciani)
Date:       2010-08-10 7:58:16
Message-ID: 20100810075816.6D599F8218 () kemper ! freedesktop ! org
[Download RAW message or body]

 src/cairo-ft-font.c |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit a150371a5d10e03d6c0d781c6fac950a9ac6be18
Author: Nicolaus L Hepler <nlhepler@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;
 		}
 	    }
_______________________________________________
cairo-commit mailing list
cairo-commit@lists.cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic