Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_object_text.c Log Message: text objects never drew with offsets to account for style padding - done now :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_text.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -3 -r1.51 -r1.52 --- evas_object_text.c 14 Jan 2006 09:26:22 -0000 1.51 +++ evas_object_text.c 16 Feb 2006 02:06:55 -0000 1.52 @@ -1218,9 +1218,11 @@ {1, 3, 4, 3, 1}, {0, 1, 2, 1, 0} }; + int sl = 0, st = 0; /* render object to surface with context, and offxet by x,y */ o = (Evas_Object_Text *)(obj->object_data); + evas_text_style_pad_get(o->cur.style, &sl, NULL, &st, NULL); ENFN->context_multiplier_unset(output, context); /* ENFN->context_color_set(output, @@ -1277,9 +1279,9 @@ context, \ surface, \ o->engine_data, \ - obj->cur.cache.geometry.x + x + ox - \ + obj->cur.cache.geometry.x + x + sl + ox - \ ENFN->font_inset_get(ENDT, o->engine_data, o->cur.text), \ - obj->cur.cache.geometry.y + y + oy + \ + obj->cur.cache.geometry.y + y + st + oy + \ (int) \ (((o->max_ascent * obj->cur.cache.geometry.h) / obj->cur.geometry.h) - 0.5), \ obj->cur.cache.geometry.w, \ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs