From 4914b2d97322cc6839e00688d9440b31d4210c0e Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 23 Mar 2007 21:06:51 +0000 Subject: [PATCH] Zoom layers change the size of their content's bounding box. Fixed the get_full_bounding_rect() function to reflect this. git-svn-id: http://svn.voria.com/code@377 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/lyr_std/zoom.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/synfig-core/trunk/src/modules/lyr_std/zoom.cpp b/synfig-core/trunk/src/modules/lyr_std/zoom.cpp index 0f0c85b..d8a88bc 100644 --- a/synfig-core/trunk/src/modules/lyr_std/zoom.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/zoom.cpp @@ -158,6 +158,5 @@ Zoom::accelerated_render(Context context,Surface *surface,int quality, const Ren synfig::Rect Zoom::get_full_bounding_rect(synfig::Context context)const { - return context.get_full_bounding_rect(); + return (context.get_full_bounding_rect()-center)*exp(amount)+center; } - -- 2.7.4