Don't render the Blur layer when quality is 10.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 1 Jan 2008 14:51:43 +0000 (14:51 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 1 Jan 2008 14:51:43 +0000 (14:51 +0000)
git-svn-id: http://svn.voria.com/code@1255 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_filter/blur.cpp

index db8b637..72dbc76 100644 (file)
@@ -121,6 +121,10 @@ Blur_Layer::get_color(Context context, const Point &pos)const
 bool
 Blur_Layer::accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const
 {
+       // don't do anything at quality 10
+       if (quality == 10)
+               return context.accelerated_render(surface,quality,renddesc,cb);
+
        // int x,y;
        SuperCallback stageone(cb,0,5000,10000);
        SuperCallback stagetwo(cb,5000,10000,10000);