X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=921eaba33a7a1b4b4b36caefaca252e84115a8af;hb=b3ae7bccfb9f4ed16e26631fee072fa011f9847e;hp=4f41406421b0cd0def083aa925862bfe89903203;hpb=07b215b2a0b442a8f9b832b9ff94755bb6191d48;p=swftools.git diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 4f41406..921eaba 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -385,10 +385,6 @@ int swf_ShapeSetMove(TAG * t,SHAPE * s,S32 x,S32 y) swf_SetBits(t,x,b); swf_SetBits(t,y,b); - if (s) - { s->px = x; - s->py = y; - } return 0; } @@ -426,8 +422,6 @@ int swf_ShapeSetAll(TAG * t,SHAPE * s,S32 x,S32 y,U16 line,U16 fill0,U16 fill1) swf_SetBits(t,b,5); swf_SetBits(t,x,b); swf_SetBits(t,y,b); - s->px = x; - s->py = y; if (fill0) swf_SetBits(t,fill0,s->bits.fill); if (fill1) swf_SetBits(t,fill1,s->bits.fill); @@ -456,10 +450,6 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) swf_SetBits(t,1,1); swf_SetBits(t,x,b); swf_SetBits(t,y,b); - if (s) - { s->px += x; - s->py += y; - } return 0; } @@ -470,8 +460,7 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) swf_SetBits(t, b-2, 4); swf_SetBits(t,1,2); swf_SetBits(t,y,b); - s->py += y; - } + } else { b = swf_CountBits(x,2); if(b<2) @@ -479,7 +468,6 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) swf_SetBits(t, b-2, 4); swf_SetBits(t,0,2); swf_SetBits(t,x,b); - s->px += x; } return 0; } @@ -501,10 +489,6 @@ int swf_ShapeSetCurve(TAG * t,SHAPE * s,S32 x,S32 y,S32 ax,S32 ay) swf_SetBits(t,ax,b); swf_SetBits(t,ay,b); - if (s) - { s->px += x+ax; - s->py += y+ay; - } return 0; }