From 58beb064a7369429483e1a3dcd058cbf68074cfc Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 12 Jun 2004 16:09:55 +0000 Subject: [PATCH] * added workaround for clip bug * pin is now initialized to (0,0). --- src/swfc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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++; -- 1.7.10.4