+ if (!etl::intersect(context.get_full_bounding_rect(),full_bounding_rect+origin))
+ {
+ if (Color::is_onto(blend_method)) return true;
+
+ /* 'straight' is faster than 'composite' and has the same
+ * effect if the affected area of the lower layer is
+ * transparent; however, if we're not clipping the blit to
+ * just the bounding rectangle, the affected area is the whole
+ * tile, so we can't use this optimisation
+ */
+#ifdef SYNFIG_CLIP_PASTECANVAS
+ if (blend_method==Color::BLEND_COMPOSITE) blend_method=Color::BLEND_STRAIGHT;
+#endif // SYNFIG_CLIP_PASTECANVAS
+ }
+