Author: Carlos Lopez <genet...@gmail.com> Date: Sat Apr 20 18:09:44 2013 +0200
Fix bug #388: Feathered outlines doesn't show in Navigator and Cairo render --- synfig-core/src/modules/mod_geometry/outline.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/synfig-core/src/modules/mod_geometry/outline.cpp b/synfig-core/src/modules/mod_geometry/outline.cpp index 630cd90..1ca38c4 100644 --- a/synfig-core/src/modules/mod_geometry/outline.cpp +++ b/synfig-core/src/modules/mod_geometry/outline.cpp @@ -1063,9 +1063,10 @@ Outline::accelerated_cairorender(Context context,cairo_surface_t *surface,int qu // Extract the alpha values: int x, y; int wh(workdesc.get_h()), ww(workdesc.get_w()); + float div=1.0/((float)(CairoColor::ceil)); for(y=0; y<wh; y++) for(x=0;x<ww;x++) - shapesurface[y][x]=cairosubimage[y][x].get_a()/CairoColor::ceil; + shapesurface[y][x]=cairosubimage[y][x].get_a()*div; // Blue the alpha values Blur(feather,feather,blurtype,cb)(shapesurface,workdesc.get_br()-workdesc.get_tl(),shapesurface); // repaint the cairosubimage with the result ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl