X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_filter%2Fblur.cpp;h=72dbc766425076f2e1553334cecd2bd91bf803db;hb=f5dcbf41927bdf64fe01cfa4fb613ab5a13d64e5;hp=3f22b9c2cb936a71049dccb0edfcb14bff82c548;hpb=cc54c38609ee9745ad678e5e9b9d7d2912be9c95;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_filter/blur.cpp b/synfig-core/trunk/src/modules/mod_filter/blur.cpp index 3f22b9c..72dbc76 100644 --- a/synfig-core/trunk/src/modules/mod_filter/blur.cpp +++ b/synfig-core/trunk/src/modules/mod_filter/blur.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file mod_filter/blur.cpp -** \brief Template Header +** \brief Implementation of the "Blur" layer ** ** $Id$ ** @@ -63,8 +63,8 @@ using namespace std; SYNFIG_LAYER_INIT(Blur_Layer); SYNFIG_LAYER_SET_NAME(Blur_Layer,"blur"); -SYNFIG_LAYER_SET_LOCAL_NAME(Blur_Layer,_("Blur")); -SYNFIG_LAYER_SET_CATEGORY(Blur_Layer,_("Blurs")); +SYNFIG_LAYER_SET_LOCAL_NAME(Blur_Layer,N_("Blur")); +SYNFIG_LAYER_SET_CATEGORY(Blur_Layer,N_("Blurs")); SYNFIG_LAYER_SET_VERSION(Blur_Layer,"0.2"); SYNFIG_LAYER_SET_CVS_ID(Blur_Layer,"$Id$"); @@ -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);