Minor fixes to font drawing with metric caching enabled.
SVN revision: 50632
This commit is contained in:
parent
fae76ddd77
commit
2df94e37ff
|
@ -464,6 +464,8 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font
|
||||||
for (ind = 0 ; ind < len ; ind ++){
|
for (ind = 0 ; ind < len ; ind ++){
|
||||||
// FIXME Do we need to draw?
|
// FIXME Do we need to draw?
|
||||||
struct cinfo *ci = word->cinfo + ind;
|
struct cinfo *ci = word->cinfo + ind;
|
||||||
|
for (j = rowstart ; j < rowend ; j ++)
|
||||||
|
{
|
||||||
if ((ci->fg->ext_dat) && (dc->font_ext.func.gl_draw))
|
if ((ci->fg->ext_dat) && (dc->font_ext.func.gl_draw))
|
||||||
{
|
{
|
||||||
/* ext glyph draw */
|
/* ext glyph draw */
|
||||||
|
@ -471,12 +473,14 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font
|
||||||
(void *)dst,
|
(void *)dst,
|
||||||
dc, ci->fg,
|
dc, ci->fg,
|
||||||
x + ci->pos.x,
|
x + ci->pos.x,
|
||||||
y - ci->bm.h
|
y - ci->bm.h + j
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
func(NULL, word->im + (word->roww * j) + xstart, dc->col.col, im + ((y + j) * im_w) + x, xrun);
|
func(NULL, word->im + (word->roww * j) + xstart,
|
||||||
|
dc->col.col, im + ((y + j) * im_w) + x, xrun);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue