Evas font-engine: Hacked around a wrong setting of clipping in textblock. - Email...
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 24 Oct 2010 10:59:52 +0000 (10:59 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 24 Oct 2010 10:59:52 +0000 (10:59 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@53828 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_draw.c

index f25f238..5a9ea7b 100644 (file)
@@ -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))
                                                   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)
                                                   {
                                                      in_w += ext_x - dx;