From 5f16c0ba14fc89355b3ad2822d2c8f9445c06a7e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 17 Aug 2011 15:42:07 +0000 Subject: [PATCH] Evas font: Fixed a compiler warning. SVN revision: 62537 --- .../evas/src/lib/engines/common/evas_font_draw.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/legacy/evas/src/lib/engines/common/evas_font_draw.c b/legacy/evas/src/lib/engines/common/evas_font_draw.c index 0fb35b6b6c..6fb70028da 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_draw.c +++ b/legacy/evas/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); } } }