Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/xrender_x11


Modified Files:
        evas_engine_font.c 


Log Message:


ok - freetype does WEIRD shit setting grays to bizarre values so now i have
toformat AND grays levels.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/xrender_x11/evas_engine_font.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evas_engine_font.c  26 Oct 2005 20:32:27 -0000      1.3
+++ evas_engine_font.c  16 Nov 2005 13:17:27 -0000      1.4
@@ -61,7 +61,8 @@
    fs->pic = XRenderCreatePicture(xinf->disp, fs->draw, xinf->fmt8, CPRepeat | 
CPDither | CPComponentAlpha, &att);
    
    xim = _xr_image_new(fs->xinf, w, h, xinf->fmt8->depth);
-   if (fg->glyph_out->bitmap.num_grays == 256)
+   if ((fg->glyph_out->bitmap.num_grays == 256) &&
+       (fg->glyph_out->bitmap.pixel_mode == ft_pixel_mode_grays))
      {
        int x, y;
        DATA8 *p1, *p2;
@@ -79,7 +80,7 @@
          }
        
      }
-   else if (fg->glyph_out->bitmap.num_grays == 0)
+   else
      {
         DATA8 *tmpbuf = NULL, *dp, *tp, bits;
        int bi, bj, end;




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to