Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_engine.c 


Log Message:


bernhard's font scale patch..

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/software_qtopia/evas_engine.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evas_engine.c       5 Feb 2005 04:21:24 -0000       1.9
+++ evas_engine.c       2 Mar 2005 04:09:15 -0000       1.10
@@ -1001,14 +1001,15 @@
             RGBA_Image *im;
             
             dc->col.col = dc_in->col.col;
-            im = evas_common_image_create(ow, oh);
+            int inset = evas_common_font_query_inset( font, text);
+            im = evas_common_image_create(ow+inset, oh);
             if (im)
               {
                  int max_ascent;
                  int i, j;
                  
                  im->flags |= RGBA_IMAGE_HAS_ALPHA;
-                 j = ow * oh;
+                 j = (ow+inset) * oh;
                  memset(im->image->data, 0, j * sizeof(DATA32));
                  
                  max_ascent = evas_common_font_max_ascent_get(font);
@@ -1016,8 +1017,8 @@
                  evas_common_font_draw(im, dc, font, 0, max_ascent, text);
                  evas_common_cpu_end_opt();
                  evas_common_scale_rgba_in_to_out_clip_smooth(im, surface, 
context, 
-                                                  0, 0, ow, oh, 
-                                                  x, y - ((max_ascent * h) / 
oh), 
+                                                  inset, 0, ow, oh, 
+                                                  x + ((inset * w) / ow), y - 
((max_ascent * h) / oh), 
                                                   w, h);
                  evas_common_image_free(im);
               }




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to