From 925d8b13ea220d07a4f1b68ba92929991726f73c Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 13 Jul 2008 18:44:12 +0000 Subject: [PATCH] made framerate a float --- lib/devices/swf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4