projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new method Layer::reads_context() which returns true iff the layer needs to be...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
mod_filter
/
halftone2.cpp
diff --git
a/synfig-core/trunk/src/modules/mod_filter/halftone2.cpp
b/synfig-core/trunk/src/modules/mod_filter/halftone2.cpp
index
c7083e1
..
5217cc2
100644
(file)
--- a/
synfig-core/trunk/src/modules/mod_filter/halftone2.cpp
+++ b/
synfig-core/trunk/src/modules/mod_filter/halftone2.cpp
@@
-1,11
+1,12
@@
/* === S Y N F I G ========================================================= */
/*! \file halftone2.cpp
/* === S Y N F I G ========================================================= */
/*! \file halftone2.cpp
-** \brief
blehh
+** \brief
Implementation of the "Halftone 2" layer
**
** $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
**
** 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
@@
-53,8
+54,8
@@
using namespace etl;
SYNFIG_LAYER_INIT(Halftone2);
SYNFIG_LAYER_SET_NAME(Halftone2,"halftone2");
SYNFIG_LAYER_INIT(Halftone2);
SYNFIG_LAYER_SET_NAME(Halftone2,"halftone2");
-SYNFIG_LAYER_SET_LOCAL_NAME(Halftone2,_("Halftone 2"));
-SYNFIG_LAYER_SET_CATEGORY(Halftone2,_("Filters"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Halftone2,
N
_("Halftone 2"));
+SYNFIG_LAYER_SET_CATEGORY(Halftone2,
N
_("Filters"));
SYNFIG_LAYER_SET_VERSION(Halftone2,"0.0");
SYNFIG_LAYER_SET_CVS_ID(Halftone2,"$Id$");
SYNFIG_LAYER_SET_VERSION(Halftone2,"0.0");
SYNFIG_LAYER_SET_CVS_ID(Halftone2,"$Id$");
@@
-93,13
+94,13
@@
Halftone2::color_func(const Point &point, float supersample,const Color& color)c
}
inline float
}
inline float
-Halftone2::calc_supersample(const synfig::Point &
x, float pw,float ph
)const
+Halftone2::calc_supersample(const synfig::Point &
/*x*/, float pw,float /*ph*/
)const
{
return abs(pw/(halftone.size).mag());
}
synfig::Layer::Handle
{
return abs(pw/(halftone.size).mag());
}
synfig::Layer::Handle
-Halftone2::hit_check(synfig::Context
context, const synfig::Point &point
)const
+Halftone2::hit_check(synfig::Context
/*context*/, const synfig::Point &/*point*/
)const
{
return const_cast<Halftone2*>(this);
}
{
return const_cast<Halftone2*>(this);
}