/* === S Y N F I G ========================================================= */
/*! \file radialblur.cpp
-** \brief Template Header
+** \brief Implementation of the "Radial Blur" layer
**
** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-** Copyright (c) 2007 Chris Moore
+** Copyright (c) 2007, 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
SYNFIG_LAYER_INIT(RadialBlur);
SYNFIG_LAYER_SET_NAME(RadialBlur,"radial_blur");
-SYNFIG_LAYER_SET_LOCAL_NAME(RadialBlur,_("Radial Blur"));
-SYNFIG_LAYER_SET_CATEGORY(RadialBlur,_("Blurs"));
+SYNFIG_LAYER_SET_LOCAL_NAME(RadialBlur,N_("Radial Blur"));
+SYNFIG_LAYER_SET_CATEGORY(RadialBlur,N_("Blurs"));
SYNFIG_LAYER_SET_VERSION(RadialBlur,"0.1");
SYNFIG_LAYER_SET_CVS_ID(RadialBlur,"$Id$");
bool
RadialBlur::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);
+
if(cb && !cb->amount_complete(0,10000))
return false;