From 5049aaee459b2b382ed18ab272504e829c8b78a9 Mon Sep 17 00:00:00 2001 From: tasn Date: Wed, 17 Aug 2011 15:42:07 +0000 Subject: [PATCH] Evas font: Fixed a compiler warning. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62537 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_draw.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/engines/common/evas_font_draw.c b/src/lib/engines/common/evas_font_draw.c index 0fb35b6..6fb7002 100644 --- a/src/lib/engines/common/evas_font_draw.c +++ b/src/lib/engines/common/evas_font_draw.c @@ -551,20 +551,20 @@ evas_font_word_prerender(RGBA_Draw_Context *dc, const Evas_Text_Props *text_prop im = calloc(height, width); for (i = 0 ; i < len ; i ++) { - struct cinfo *ci = metrics + i; + struct cinfo *cin = metrics + i; - for (j = 0 ; j < ci->bm.rows ; j ++) + for (j = 0 ; j < cin->bm.rows ; j ++) { int correction; /* Used to remove negative inset and such */ - if (ci->pos.x < 0) - correction = -ci->pos.x; + if (cin->pos.x < 0) + correction = -cin->pos.x; else correction = 0; - memcpy(im + ci->pos.x + (j + baseline - ci->bm.h) * width + + memcpy(im + cin->pos.x + (j + baseline - cin->bm.h) * width + correction, - ci->bm.data + j * ci->bm.w + correction, - ci->bm.w - correction); + cin->bm.data + j * cin->bm.w + correction, + cin->bm.w - correction); } } } -- 2.7.4