X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=915f443e31f725cc2ab59e813ec4b2214516791f;hb=ac8a1cbb659d91911eb9253ea7a56ac8c8de99ea;hp=e7a03ac8524f38bdd6b3acad01fe1ed2cc151de3;hpb=570b350930b4c204e5adfa7b1b0b3f2f1c1bbbef;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index e7a03ac..915f443 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -1780,6 +1780,9 @@ int swf_setparameter(gfxdevice_t*dev, const char*name, const char*value) i->config_internallinkfunction = strdup(value); } else if(!strcmp(name, "externallinkfunction")) { i->config_externallinkfunction = strdup(value); + } else if(!strcmp(name, "linkfunction")) { //sets both internallinkfunction and externallinkfunction + i->config_internallinkfunction = strdup(value); + i->config_externallinkfunction = strdup(value); } else if(!strcmp(name, "disable_polygon_conversion")) { i->config_disable_polygon_conversion = atoi(value); } else if(!strcmp(name, "insertstop")) { @@ -1816,7 +1819,7 @@ int swf_setparameter(gfxdevice_t*dev, const char*name, const char*value) } else if(!strcmp(name, "jpegquality")) { int val = atoi(value); if(val<0) val=0; - if(val>100) val=100; + if(val>101) val=101; i->config_jpegquality = val; } else if(!strcmp(name, "splinequality")) { int v = atoi(value);