projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid division by zero when approximating a circle by two points.
[synfig.git]
/
synfig-core
/
tags
/
stable
/
src
/
modules
/
lyr_std
/
supersample.cpp
diff --git
a/synfig-core/tags/stable/src/modules/lyr_std/supersample.cpp
b/synfig-core/tags/stable/src/modules/lyr_std/supersample.cpp
index
a666363
..
608a242
100644
(file)
--- a/
synfig-core/tags/stable/src/modules/lyr_std/supersample.cpp
+++ b/
synfig-core/tags/stable/src/modules/lyr_std/supersample.cpp
@@
-1,6
+1,6
@@
/* === S Y N F I G ========================================================= */
/*! \file supersample.cpp
/* === S Y N F I G ========================================================= */
/*! \file supersample.cpp
-** \brief
Template Head
er
+** \brief
Implementation of the "Super Sample" lay
er
**
** $Id$
**
**
** $Id$
**
@@
-52,8
+52,8
@@
SYNFIG_LAYER_INIT(SuperSample);
SYNFIG_LAYER_SET_NAME(SuperSample,"super_sample");
SYNFIG_LAYER_INIT(SuperSample);
SYNFIG_LAYER_SET_NAME(SuperSample,"super_sample");
-SYNFIG_LAYER_SET_LOCAL_NAME(SuperSample,_("Super Sample"));
-SYNFIG_LAYER_SET_CATEGORY(SuperSample,_("Other"));
+SYNFIG_LAYER_SET_LOCAL_NAME(SuperSample,
N
_("Super Sample"));
+SYNFIG_LAYER_SET_CATEGORY(SuperSample,
N
_("Other"));
SYNFIG_LAYER_SET_VERSION(SuperSample,"0.1");
SYNFIG_LAYER_SET_CVS_ID(SuperSample,"$Id$");
SYNFIG_LAYER_SET_VERSION(SuperSample,"0.1");
SYNFIG_LAYER_SET_CVS_ID(SuperSample,"$Id$");
@@
-170,7
+170,7
@@
SuperSample::accelerated_render(Context context,Surface *surface,int quality, co
else
pen.put_value(Color::alpha());
}
else
pen.put_value(Color::alpha());
}
- if(
y&31
==0 && cb)
+ if(
(y&31)
==0 && cb)
{
if(!stagetwo.amount_complete(y,surface->get_h()))
return false;
{
if(!stagetwo.amount_complete(y,surface->get_h()))
return false;
@@
-193,7
+193,7
@@
SuperSample::accelerated_render(Context context,Surface *surface,int quality, co
temp_pen.dec_y(v);
pen.put_value(pool*multiplier);
}
temp_pen.dec_y(v);
pen.put_value(pool*multiplier);
}
- if(
y&31
==0 && cb)
+ if(
(y&31)
==0 && cb)
{
if(!stagetwo.amount_complete(y,surface->get_h()))
return false;
{
if(!stagetwo.amount_complete(y,surface->get_h()))
return false;