projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 2435346: "Export canvas, save and revert keeps the inline canvas". Use LayerPara...
[synfig.git]
/
synfig-core
/
tags
/
stable
/
src
/
modules
/
mod_filter
/
radialblur.cpp
diff --git
a/synfig-core/tags/stable/src/modules/mod_filter/radialblur.cpp
b/synfig-core/tags/stable/src/modules/mod_filter/radialblur.cpp
index
4c7f749
..
6ecc5bb
100644
(file)
--- a/
synfig-core/tags/stable/src/modules/mod_filter/radialblur.cpp
+++ b/
synfig-core/tags/stable/src/modules/mod_filter/radialblur.cpp
@@
-1,12
+1,12
@@
/* === S Y N F I G ========================================================= */
/*! \file radialblur.cpp
/* === S Y N F I G ========================================================= */
/*! \file radialblur.cpp
-** \brief
Template Head
er
+** \brief
Implementation of the "Radial Blur" lay
er
**
** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** $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
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-52,8
+52,8
@@
SYNFIG_LAYER_INIT(RadialBlur);
SYNFIG_LAYER_SET_NAME(RadialBlur,"radial_blur");
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$");
SYNFIG_LAYER_SET_VERSION(RadialBlur,"0.1");
SYNFIG_LAYER_SET_CVS_ID(RadialBlur,"$Id$");
@@
-130,6
+130,10
@@
RadialBlur::get_color(Context context, const Point &p)const
bool
RadialBlur::accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const
{
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;
if(cb && !cb->amount_complete(0,10000))
return false;
@@
-156,7
+160,7
@@
RadialBlur::accelerated_render(Context context,Surface *surface,int quality, con
br[1] + ph*(int((rect.get_min()[1]-br[1])/ph+2-1e-6)));
// round to nearest integer width and height (should be very
br[1] + ph*(int((rect.get_min()[1]-br[1])/ph+2-1e-6)));
// round to nearest integer width and height (should be very
- // nearly whole numbers already, but dont want to round 5.99999
+ // nearly whole numbers already, but don
'
t want to round 5.99999
// down to 5)
int tmp_surface_width = int((tmp_surface_br[0]-tmp_surface_tl[0])/pw + 0.5);
int tmp_surface_height = int((tmp_surface_br[1]-tmp_surface_tl[1])/ph + 0.5);
// down to 5)
int tmp_surface_width = int((tmp_surface_br[0]-tmp_surface_tl[0])/pw + 0.5);
int tmp_surface_height = int((tmp_surface_br[1]-tmp_surface_tl[1])/ph + 0.5);