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:

improve optimal nature of code.. get some more speed....

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_font_draw.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- evas_font_draw.c    9 Sep 2003 05:51:02 -0000       1.5
+++ evas_font_draw.c    10 Sep 2003 14:33:38 -0000      1.6
@@ -59,7 +59,8 @@
    int ext_x, ext_y, ext_w, ext_h;
    DATA32 *im;
    int im_w, im_h;
-
+   int c;
+   
    im = dst->image->data;
    im_w = dst->image->w;
    im_h = dst->image->h;
@@ -94,7 +95,7 @@
    use_kerning = FT_HAS_KERNING(fn->ft.face);
    prev_index = 0;
    func = evas_common_draw_func_blend_alpha_get(dst);
-   for (chr = 0; text[chr];)
+   for (c = 0, chr = 0; text[chr];)
      {
        FT_UInt index;
        RGBA_Font_Glyph *fg;
@@ -144,7 +145,7 @@
                         {
                            /* ext glyph draw */
                            dc->font_ext.func.gl_draw(dc->font_ext.data, 
-                                                     NULL,
+                                                     (void *)c,
                                                      dc, fg, 
                                                      chr_x, 
                                                      y - (chr_y - y)
@@ -183,6 +184,7 @@
                                   }
                              }
                         }
+                      c++;
                    }
               }
          }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to