X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=ec63ccbae1f32b539f9a928438535c1c9ffb7287;hb=925d8b13ea220d07a4f1b68ba92929991726f73c;hp=b8aedcb041a594b306464fec8e235a82ceb3f1ae;hpb=a9e315788f366e44b1e14dad849e24329859d62b;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index b8aedcb..ec63ccb 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -40,7 +40,11 @@ #include "../rfxswf.h" #include "../gfxdevice.h" #include "../gfxtools.h" +#ifdef INTERNAL_LIBART #include "../art/libart.h" +#else +#include +#endif #include "swf.h" #include "../gfxpoly.h" #include "../png.h" @@ -1953,7 +1957,7 @@ int swf_setparameter(gfxdevice_t*dev, const char*name, const char*value) i->swf->fileVersion = i->config_flashversion; } } else if(!strcmp(name, "framerate")) { - i->config_framerate = atoi(value); + i->config_framerate = atof(value); if(i->swf) { i->swf->frameRate = i->config_framerate*0x100; }