From: kramm Date: Sat, 12 Jun 2004 16:09:55 +0000 (+0000) Subject: * added workaround for clip bug X-Git-Tag: release-0-6-0~102 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=58beb064a7369429483e1a3dcd058cbf68074cfc;hp=66069591a4e556520c60c4cf1e0b47b70a99b7ca;p=swftools.git * added workaround for clip bug * pin is now initialized to (0,0). --- 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++;