git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
146d70a
)
fixed ShapeSetLine (again)
release-0-0-2
author
kramm
<kramm>
Tue, 23 Oct 2001 18:33:36 +0000
(18:33 +0000)
committer
kramm
<kramm>
Tue, 23 Oct 2001 18:33:36 +0000
(18:33 +0000)
lib/modules/swfshape.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfshape.c
b/lib/modules/swfshape.c
index
d1366ff
..
dbd6c56
100644
(file)
--- a/
lib/modules/swfshape.c
+++ b/
lib/modules/swfshape.c
@@
-450,7
+450,9
@@
int ShapeSetLine(LPTAG t,LPSHAPE s,S32 x,S32 y)
if ((!s)||((x!=0)&&(y!=0)))
\r
{ b = CountBits(x,2);
\r
b = CountBits(y,b);
\r
if ((!s)||((x!=0)&&(y!=0)))
\r
{ b = CountBits(x,2);
\r
b = CountBits(y,b);
\r
- SetBits(t, b>=2 ? b-2 : 0, 4);
\r
+ if(b<2)
\r
+ b=2;
\r
+ SetBits(t, b-2, 4);
\r
SetBits(t,1,1);
\r
SetBits(t,x,b);
\r
SetBits(t,y,b);
\r
SetBits(t,1,1);
\r
SetBits(t,x,b);
\r
SetBits(t,y,b);
\r
@@
-463,14
+465,18
@@
int ShapeSetLine(LPTAG t,LPSHAPE s,S32 x,S32 y)
\r
if (x==0)
\r
{ b = CountBits(y,2);
\r
\r
if (x==0)
\r
{ b = CountBits(y,2);
\r
- SetBits(t, b>=2 ? b-2 : 0, 4);
\r
+ if(b<2)
\r
+ b=2;
\r
+ SetBits(t, b-2, 4);
\r
SetBits(t,1,2);
\r
SetBits(t,y,b);
\r
s->py += y;
\r
}
\r
else
\r
{ b = CountBits(x,2);
\r
SetBits(t,1,2);
\r
SetBits(t,y,b);
\r
s->py += y;
\r
}
\r
else
\r
{ b = CountBits(x,2);
\r
- SetBits(t, b>=2 ? b-2 : 0, 4);
\r
+ if(b<2)
\r
+ b=2;
\r
+ SetBits(t, b-2, 4);
\r
SetBits(t,0,2);
\r
SetBits(t,x,b);
\r
s->px += x;
\r
SetBits(t,0,2);
\r
SetBits(t,x,b);
\r
s->px += x;
\r