Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common
Modified Files:
evas_font_draw.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/common/evas_font_draw.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- evas_font_draw.c 2 Oct 2005 15:15:44 -0000 1.16
+++ evas_font_draw.c 16 Nov 2005 13:17:27 -0000 1.17
@@ -16,7 +16,7 @@
fg = evas_hash_find(fi->glyphs, key);
if (fg) return fg;
-
+
// error = FT_Load_Glyph(fi->src->ft.face, index, FT_LOAD_NO_BITMAP);
error = FT_Load_Glyph(fi->src->ft.face, index,
FT_LOAD_RENDER);
@@ -187,7 +187,8 @@
}
else
{
- 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))
{
for (i = 0; i < h; i++)
{
@@ -220,7 +221,7 @@
}
}
}
- else if (fg->glyph_out->bitmap.num_grays == 0)
+ else
{
DATA8 *tmpbuf = NULL, *dp, *tp, bits;
int bi, bj;
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs