summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kramm <kramm@quiss.org>2011-12-15 12:38:19 -0800
committerMatthias Kramm <kramm@quiss.org>2011-12-15 12:38:19 -0800
commite6bb303bc611d8d28c24ea0731f23ac5293cfdb8 (patch)
treeff9d7f5181eae99c4fd58ccc73f810a5b9e107a0
parentd59a1a1d2b2096821868b7c4997672f55c8c8aec (diff)
new parameter -s local_with_filesystem
-rw-r--r--lib/devices/swf.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/devices/swf.c b/lib/devices/swf.c
index 74d124ce..0dab9425 100644
--- a/lib/devices/swf.c
+++ b/lib/devices/swf.c
@@ -111,6 +111,8 @@ typedef struct _swfoutput_internal
int config_splinemaxerror;
int config_fontsplinemaxerror;
int config_filloverlap;
+ int config_local_with_network;
+ int config_local_with_filesystem;
int config_protect;
int config_bboxvars;
int config_disable_polygon_conversion;
@@ -282,6 +284,8 @@ static swfoutput_internal* init_internal_struct()
i->config_splinemaxerror=1;
i->config_fontsplinemaxerror=1;
i->config_filloverlap=0;
+ i->config_local_with_network=0;
+ i->config_local_with_filesystem=0;
i->config_protect=0;
i->config_bboxvars=0;
i->config_override_line_widths=0;
@@ -1208,8 +1212,13 @@ void gfxdevice_swf_init(gfxdevice_t* dev)
i->swf->movieSize.ymin = 0;
i->swf->movieSize.xmax = 0;
i->swf->movieSize.ymax = 0;
- i->swf->fileAttributes = 9; // as3, local-with-network
-
+
+ if(i->config_local_with_filesystem) {
+ i->swf->fileAttributes = 8; // as3, local-with-filesystem
+ } else {
+ i->swf->fileAttributes = 9; // as3, local-with-network
+ }
+
i->swf->firstTag = swf_InsertTag(NULL,ST_SETBACKGROUNDCOLOR);
i->tag = i->swf->firstTag;
RGBA rgb;
@@ -2065,6 +2074,12 @@ int swf_setparameter(gfxdevice_t*dev, const char*name, const char*value)
}
} else if(!strcmp(name, "filloverlap")) {
i->config_filloverlap = atoi(value);
+ } else if(!strcmp(name, "local_with_network")) {
+ i->config_local_with_network = atoi(value);
+ i->config_local_with_filesystem = !i->config_local_with_network;
+ } else if(!strcmp(name, "local_with_filesystem")) {
+ i->config_local_with_filesystem = atoi(value);
+ i->config_local_with_network = !i->config_local_with_filesystem;
} else if(!strcmp(name, "linksopennewwindow")) {
i->config_opennewwindow = atoi(value);
} else if(!strcmp(name, "opennewwindow")) {