Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/software_x11
Modified Files:
evas_engine.c
Log Message:
bernhard's font scale patch..
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/software_x11/evas_engine.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- evas_engine.c 5 Feb 2005 04:21:24 -0000 1.11
+++ evas_engine.c 2 Mar 2005 04:09:15 -0000 1.12
@@ -1060,14 +1060,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);
@@ -1075,8 +1076,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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs