From f310fd66fa5d84e874ee64ce47910cfc90f5943b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 22 Jul 2015 12:25:30 +0200 Subject: [PATCH] Downscale from fixed-point calculations correctly. --- klgd_ff_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klgd_ff_plugin.c b/klgd_ff_plugin.c index 2886760..771d7eb 100644 --- a/klgd_ff_plugin.c +++ b/klgd_ff_plugin.c @@ -4,7 +4,7 @@ #include #define DIR_TO_DEGREES(dir) (360 - ((((dir > 0xc000) ? (u32)dir + 0x4000 - 0xffff : (u32)dir + 0x4000) * 360) / 0xffff)) -#define FRAC_16 8 +#define FRAC_16 15 #define RECALC_DELTA_T_MSEC 20 static int ffpl_handle_state_change(struct klgd_plugin_private *priv, struct klgd_command_stream *s, struct ffpl_effect *eff, -- 2.43.5