evas: work around text/textblock bug rendering outside of rendering zone.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 28 Mar 2011 14:32:03 +0000 (14:32 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 28 Mar 2011 14:32:03 +0000 (14:32 +0000)
This fix is temporary and waiting for Tasn to look at the proper fix. It will
be removed once that done.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58156 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_render.c

index b7629c9..9197593 100644 (file)
@@ -1372,6 +1372,15 @@ evas_render_updates_internal(Evas *e,
                                    }
                              }
 #endif
+                            /* FIXME: This clip is only temporary to avoid a bug in textblock that
+                               render outside of the zone it is allowed to render. It's a serious
+                               bug as it may render out of screen buffer, that's why it get back in.
+
+                               REMOVE IT ASAP !
+                            */
+                            e->engine.func->context_clip_set(e->engine.data.output,
+                                                             e->engine.data.context,
+                                                             x, y, w, h);
                             clean_them |= evas_render_mapped(e, obj, e->engine.data.context,
                                                             surface, off_x, off_y, 0
 #ifdef REND_DGB