projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert the accidental removal of mod_libavcodec in r2286.
[synfig.git]
/
ETL
/
trunk
/
test
/
pen.cpp
diff --git
a/ETL/trunk/test/pen.cpp
b/ETL/trunk/test/pen.cpp
index
92b004f
..
ef6eaee
100644
(file)
--- a/
ETL/trunk/test/pen.cpp
+++ b/
ETL/trunk/test/pen.cpp
@@
-38,8
+38,6
@@
using namespace std;
using namespace etl;
using namespace std;
using namespace etl;
-#define DEBUGPOINT() fprintf(stderr,__FILE__":%d: Debugpoint\n",__LINE__)
-
/* === C L A S S E S ======================================================= */
int generic_pen_test(int w, int h)
/* === C L A S S E S ======================================================= */
int generic_pen_test(int w, int h)
@@
-94,7
+92,7
@@
int generic_pen_test(int w, int h)
if(pen.end_x()-pen.x()!=w-1)
{
if(pen.end_x()-pen.x()!=w-1)
{
- printf("FAILURE! "__FILE__"@%d: iterator_x inconsistency (%d!=%d)\n",__LINE__,pen.end_x()-pen.x(),w);
+ printf("FAILURE! "__FILE__"@%d: iterator_x inconsistency (%
l
d!=%d)\n",__LINE__,pen.end_x()-pen.x(),w);
return 1;
}
return 1;
}
@@
-241,7
+239,7
@@
int box_blur_test(void)
{
for(x=0;x<w;x++,pen.inc_x())
{
{
for(x=0;x<w;x++,pen.inc_x())
{
- if(
x-y<=1 && y-x<=1
|| y==h/2 || x==w/2)
+ if(
(x-y<=1 && y-x<=1)
|| y==h/2 || x==w/2)
pen.put_value(2);
else
pen.put_value(0);
pen.put_value(2);
else
pen.put_value(0);
@@
-307,7
+305,7
@@
int box_blur_test(void)
if(ix < 0) ix = 0;
if(ix >= w) ix = w-1;
if(ix < 0) ix = 0;
if(ix >= w) ix = w-1;
- if(
ix-iy<=1 && iy-ix<=1
|| iy==h/2 || ix==w/2)
+ if(
(ix-iy<=1 && iy-ix<=1)
|| iy==h/2 || ix==w/2)
f += 2;
}
}
f += 2;
}
}