X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfc.c;h=b1b14026ef03bef056c860b515a0bf31e9a6ef16;hb=58beb064a7369429483e1a3dcd058cbf68074cfc;hp=75b38a37b4750bfba396ca7f9e0e5d241c264c2f;hpb=66069591a4e556520c60c4cf1e0b47b70a99b7ca;p=swftools.git diff --git a/src/swfc.c b/src/swfc.c index 75b38a3..b1b1402 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -320,7 +320,8 @@ static void parameters_clear(parameters_t*p) { p->x = 0; p->y = 0; p->scalex = 1.0; p->scaley = 1.0; - p->pin.x = 1; p->pin.y = 0; + p->pin.x = 0; //1?? + p->pin.y = 0; p->pivot.x = 0; p->pivot.y = 0; p->rotate = 0; p->shear = 0; @@ -347,7 +348,7 @@ static void makeMatrix(MATRIX*m, parameters_t*p) m->sy = (int)(sy*65536+0.5); m->tx = m->ty = 0; - + h = swf_TurnPoint(p->pin, m); m->tx = p->x - h.x; m->ty = p->y - h.y; @@ -1335,6 +1336,7 @@ void s_endClip() swf_SetTagPos(stack[stackpos].tag, 0); swf_GetPlaceObject(stack[stackpos].tag, &p); p.clipdepth = currentdepth; + p.name = 0; swf_ClearTag(stack[stackpos].tag); swf_SetPlaceObject(stack[stackpos].tag, &p); currentdepth++;