Use cpp to remove code.

SVN revision: 27584
This commit is contained in:
Sebastian Dransfeld 2006-12-28 12:23:13 +00:00
parent 43dd5f8882
commit 6849defebf
2 changed files with 27 additions and 23 deletions

View File

@ -1403,22 +1403,24 @@ evas_object_text_render(Evas_Object *obj, void *output, void *context, void *sur
obj->cur.geometry.w, \
obj->cur.geometry.h, \
o->cur.text);
////#define DRAW_TEXT(ox, oy) \
//// if ((o->engine_data) && (o->cur.text)) \
//// ENFN->font_draw(output, \
//// context, \
//// surface, \
//// o->engine_data, \
//// 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 + st + oy + \
//// (int) \
//// (((o->max_ascent * obj->cur.cache.geometry.h) / obj->cur.geometry.h) - 0.5), \
//// obj->cur.cache.geometry.w, \
//// obj->cur.cache.geometry.h, \
//// obj->cur.geometry.w, \
//// obj->cur.geometry.h, \
//// o->cur.text);
#if 0
#define DRAW_TEXT(ox, oy) \
if ((o->engine_data) && (o->cur.text)) \
ENFN->font_draw(output, \
context, \
surface, \
o->engine_data, \
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 + st + oy + \
(int) \
(((o->max_ascent * obj->cur.cache.geometry.h) / obj->cur.geometry.h) - 0.5), \
obj->cur.cache.geometry.w, \
obj->cur.cache.geometry.h, \
obj->cur.geometry.w, \
obj->cur.geometry.h, \
o->cur.text);
#endif
/* shadows */
if (o->cur.style == EVAS_TEXT_STYLE_SHADOW)
{

View File

@ -4154,13 +4154,15 @@ evas_object_textblock_render(Evas_Object *obj, void *output, void *context, void
obj->cur.geometry.x + ln->x + it->x - it->inset + x + (ox), \
obj->cur.geometry.y + ln->y + yoff + y + (oy), \
it->w, it->h, it->w, it->h, it->text);
////#define DRAW_TEXT(ox, oy) \
//// if (it->format->font.font) ENFN->font_draw(output, context, surface, it->format->font.font, \
//// obj->cur.geometry.x + ln->x + it->x - it->inset + x + (ox), \
//// obj->cur.geometry.y + ln->y + yoff + y + (oy), \
//// obj->cur.cache.geometry.x + ln->x + it->x - it->inset + x + (ox), \
//// obj->cur.cache.geometry.y + ln->y + yoff + y + (oy), \
//// it->w, it->h, it->w, it->h, it->text);
#if 0
#define DRAW_TEXT(ox, oy) \
if (it->format->font.font) ENFN->font_draw(output, context, surface, it->format->font.font, \
obj->cur.geometry.x + ln->x + it->x - it->inset + x + (ox), \
obj->cur.geometry.y + ln->y + yoff + y + (oy), \
obj->cur.cache.geometry.x + ln->x + it->x - it->inset + x + (ox), \
obj->cur.cache.geometry.y + ln->y + yoff + y + (oy), \
it->w, it->h, it->w, it->h, it->text);
#endif
pback = 0;
/* backing */