Author: Carlos Lopez <[email protected]> Date: Wed Jan 11 12:25:11 2012 +0100
Fix bug http://www.pivotaltracker.com/story/show/23212095. If two rotations of 90 and -90 are consecutive the program crashes. --- synfig-core/src/modules/lyr_std/rotate.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/synfig-core/src/modules/lyr_std/rotate.cpp b/synfig-core/src/modules/lyr_std/rotate.cpp index 569e903..4fd9356 100644 --- a/synfig-core/src/modules/lyr_std/rotate.cpp +++ b/synfig-core/src/modules/lyr_std/rotate.cpp @@ -256,6 +256,11 @@ Rotate::accelerated_render(Context context,Surface *surface,int quality, const R Surface::pen pen(surface->begin()); + // There is not need to supersample when the rotation is 90 or -90 + // There is a one to one pixel correspondence. + if(amount.dist(Angle::deg(90))== Angle::deg(0.0) || amount.dist(Angle::deg(-90))== Angle::deg(0.0)) + quality = 7; + if(quality<=4) { // CUBIC ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
