projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid warning.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
mod_geometry
/
circle.cpp
diff --git
a/synfig-core/trunk/src/modules/mod_geometry/circle.cpp
b/synfig-core/trunk/src/modules/mod_geometry/circle.cpp
index
fca1ef7
..
cef640a
100644
(file)
--- a/
synfig-core/trunk/src/modules/mod_geometry/circle.cpp
+++ b/
synfig-core/trunk/src/modules/mod_geometry/circle.cpp
@@
-1,6
+1,6
@@
/* === S Y N F I G ========================================================= */
/*! \file circle.cpp
/* === S Y N F I G ========================================================= */
/*! \file circle.cpp
-** \brief
Template Head
er
+** \brief
Implementation of the "Circle" lay
er
**
** $Id$
**
**
** $Id$
**
@@
-73,7
+73,9
@@
Circle::Circle():
bool
Circle::ImportParameters(const String ¶m, const ValueBase &value)
{
bool
Circle::ImportParameters(const String ¶m, const ValueBase &value)
{
- IMPORT(color);
+ IMPORT_PLUS(color, { if (color.get_a() == 0) if (converted_blend_) {
+ set_blend_method(Color::BLEND_ALPHA_OVER);
+ color.set_a(1); } else transparent_color_ = true; });
IMPORT(radius);
IMPORT(feather);
IMPORT(invert);
IMPORT(radius);
IMPORT(feather);
IMPORT(invert);
@@
-441,7
+443,8
@@
Circle::accelerated_render(Context context,Surface *surface,int quality, const R
// Increasing the feather amount by the size of
// a pixel will create an anti-aliased appearance
// Increasing the feather amount by the size of
// a pixel will create an anti-aliased appearance
- const Real newfeather=feather + (abs(ph)+abs(pw))/4.0;
+ // don't render feathering at all when quality is 10
+ const Real newfeather = (quality == 10) ? 0 : feather + (abs(ph)+abs(pw))/4.0;
//int u,v;
int left = (int) floor( (pos[0] - x_neg*(radius+newfeather) - tl[0]) / pw );
//int u,v;
int left = (int) floor( (pos[0] - x_neg*(radius+newfeather) - tl[0]) / pw );