From: dooglus Date: Fri, 23 Mar 2007 21:06:51 +0000 (+0000) Subject: Zoom layers change the size of their content's bounding box. Fixed the get_full_boun... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4914b2d97322cc6839e00688d9440b31d4210c0e;p=synfig.git 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 --- 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; } -