From: Michal MalĂ˝ Date: Wed, 22 Jul 2015 10:25:30 +0000 (+0200) Subject: Downscale from fixed-point calculations correctly. X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=f310fd66fa5d84e874ee64ce47910cfc90f5943b;p=KLGD_FF_plugin.git Downscale from fixed-point calculations correctly. --- 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,