made framerate a float
authorkramm <kramm>
Sun, 13 Jul 2008 18:44:12 +0000 (18:44 +0000)
committerkramm <kramm>
Sun, 13 Jul 2008 18:44:12 +0000 (18:44 +0000)
lib/devices/swf.c

index b8aedcb..ec63ccb 100644 (file)
 #include "../rfxswf.h"
 #include "../gfxdevice.h"
 #include "../gfxtools.h"
+#ifdef INTERNAL_LIBART
 #include "../art/libart.h"
+#else
+#include <libart_lgpl/libart.h>
+#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;
        }