char* config_linktarget;
char*config_internallinkfunction;
char*config_externallinkfunction;
+ char config_animate;
SWF* swf;
swf_SetU8(i->tag, 0);//reserved
}
i->tag = swf_InsertTag(i->tag,ST_PLACEOBJECT2);
-
+
swf_ObjectPlace(i->tag,i->textid,getNewDepth(dev),&i->page_matrix,NULL,NULL);
i->textid = -1;
}
changeRect(dev, i->tag, i->bboxrectpos, &i->bboxrect);
- msg("<trace> Placing shape id %d", i->shapeid);
+ msg("<trace> Placing shape ID %d", i->shapeid);
i->tag = swf_InsertTag(i->tag,ST_PLACEOBJECT2);
MATRIX m = i->page_matrix;
m.ty += i->shapeposy;
swf_ObjectPlace(i->tag,i->shapeid,getNewDepth(dev),&m,NULL,NULL);
+ if(i->config_animate) {
+ i->tag = swf_InsertTag(i->tag,ST_SHOWFRAME);
+ }
+
swf_ShapeFree(i->shape);
i->shape = 0;
i->shapeid = -1;
}
}
+ msg("<trace> Placing link ID %d", buttonid);
i->tag = swf_InsertTag(i->tag,ST_PLACEOBJECT2);
if(posx!=0 || posy!=0) {
i->config_linktarget = strdup(value);
} else if(!strcmp(name, "dumpfonts")) {
i->config_dumpfonts = atoi(value);
+ } else if(!strcmp(name, "animate")) {
+ i->config_animate = atoi(value);
} else if(!strcmp(name, "next_bitmap_is_jpeg")) {
i->jpeg = 1;
} else if(!strcmp(name, "jpegquality")) {
cx.r0 = (S16)(c->rr*256);
cx.g0 = (S16)(c->gg*256);
cx.b0 = (S16)(c->bb*256);
- cx.a1 = c->t.a;
- cx.r1 = c->t.r;
- cx.g1 = c->t.g;
- cx.b1 = c->t.b;
+ cx.a1 = c->ta;
+ cx.r1 = c->tr;
+ cx.g1 = c->tg;
+ cx.b1 = c->tb;
return cx;
}
/// {
if(is_jpeg && i->config_jpegsubpixels) {
- newsizex = (int)(targetwidth*i->config_jpegsubpixels+0.5);
- newsizey = (int)(targetheight*i->config_jpegsubpixels+0.5);
+ newsizex = (int)(targetwidth*i->config_jpegsubpixels + 0.5);
+ newsizey = (int)(targetheight*i->config_jpegsubpixels + 0.5);
} else if(!is_jpeg && i->config_ppmsubpixels) {
- newsizex = (int)(targetwidth*i->config_ppmsubpixels+0.5);
- newsizey = (int)(targetheight*i->config_ppmsubpixels+0.5);
+ newsizex = (int)(targetwidth*i->config_ppmsubpixels + 0.5);
+ newsizey = (int)(targetheight*i->config_ppmsubpixels + 0.5);
}
/// }
- if(sizex<=0 || sizey<=0 || newsizex<=0 || newsizey<=0)
+ if(sizex<=0 || sizey<=0)
return -1;
+ if(newsizex<=0)
+ newsizex = 1;
+ if(newsizey<=0)
+ newsizey = 1;
/* TODO: cache images */
swf_ShapeSetEnd(i->tag);
swf_ShapeFree(shape);
+ msg("<trace> Placing bitmap ID %d", myshapeid);
i->tag = swf_InsertTag(i->tag,ST_PLACEOBJECT2);
CXFORM cxform2 = gfxcxform_to_cxform(cxform);
swf_ObjectPlace(i->tag,myshapeid,getNewDepth(dev),&i->page_matrix,&cxform2,NULL);
/* TODO: remember the bbox, and check all shapes against it */
+ msg("<trace> Placing clip ID %d", myshapeid);
i->tag = swf_InsertTag(i->tag,ST_PLACEOBJECT2);
i->cliptags[i->clippos] = i->tag;
i->clipshapes[i->clippos] = myshapeid;