forked from enlightenment/efl
Evas font-engine: Hacked around a wrong setting of clipping in textblock. - Email in ML will soon follow.
SVN revision: 53828
This commit is contained in:
parent
76e6a7fac6
commit
b705c2c038
|
@ -614,6 +614,16 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font
|
||||||
{
|
{
|
||||||
if (dx + w > (ext_x + ext_w))
|
if (dx + w > (ext_x + ext_w))
|
||||||
in_w += (dx + w) - (ext_x + ext_w);
|
in_w += (dx + w) - (ext_x + ext_w);
|
||||||
|
/* FIXME: Hack around the bug
|
||||||
|
* with clipping not taking
|
||||||
|
* textblock's size into
|
||||||
|
* account */
|
||||||
|
if (dx < x)
|
||||||
|
{
|
||||||
|
in_w += x - dx;
|
||||||
|
in_x = x - dx;
|
||||||
|
dx = x;
|
||||||
|
}
|
||||||
if (dx < ext_x)
|
if (dx < ext_x)
|
||||||
{
|
{
|
||||||
in_w += ext_x - dx;
|
in_w += ext_x - dx;
|
||||||
|
|
Loading…
Reference in New Issue