From: nash Date: Wed, 28 Jul 2010 07:33:23 +0000 (+0000) Subject: Don't try and render wordcache if GL is on, and metric cache is enabled. X-Git-Tag: submit/trunk/20120815.174732~2637 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbe0e6d9e1ded2c83c84559cf671eb3136fa604b;p=profile%2Fivi%2Fevas.git Don't try and render wordcache if GL is on, and metric cache is enabled. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50586 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_font_draw.c b/src/lib/engines/common/evas_font_draw.c index e177cac..6df6716 100644 --- a/src/lib/engines/common/evas_font_draw.c +++ b/src/lib/engines/common/evas_font_draw.c @@ -449,9 +449,12 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font if (xrun < 1) return; #ifdef WORD_CACHE - for (j = rowstart ; j < rowend ; j ++){ - func(NULL, word->im + (word->roww * j) + xstart, dc->col.col, - im + ((y + j) * im_w) + x, xrun); + if (word->im){ + for (j = rowstart ; j < rowend ; j ++){ + func(NULL, word->im + (word->roww * j) + xstart, dc->col.col, + im + ((y + j) * im_w) + x, xrun); + } + return; } #elif defined(METRIC_CACHE) int ind; @@ -459,19 +462,20 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font for (ind = 0 ; ind < len ; ind ++){ // FIXME Do we need to draw? struct cinfo *ci = word->cinfo + ind; - if ((ci->fg->ext_dat) && (dc->font_ext.func.gl_draw)) - { - /* ext glyph draw */ - dc->font_ext.func.gl_draw(dc->font_ext.data, - (void *)dst, - dc, ci->fg, - x + ci->pos.x, - y - ci->bm.h - ); - } - else { - func(NULL, word->im + (word->roww * j) + xstart, dc->col.col, im + ((y + j) * im_w) + x, xrun); - } + if ((ci->fg->ext_dat) && (dc->font_ext.func.gl_draw)) + { + /* ext glyph draw */ + dc->font_ext.func.gl_draw(dc->font_ext.data, + (void *)dst, + dc, ci->fg, + x + ci->pos.x, + y - ci->bm.h + ); + } + else + { + func(NULL, word->im + (word->roww * j) + xstart, dc->col.col, im + ((y + j) * im_w) + x, xrun); + } } #endif return;