On Fri, Nov 14, 2008 at 02:08:24PM -0800, Keith Packard wrote:
> These values need not be constrained to integer values.
> 
> Signed-off-by: Keith Packard <[EMAIL PROTECTED]>
> ---
>  hw/xfree86/common/xf86Xinput.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
> index f028a25..c785c45 100644
> --- a/hw/xfree86/common/xf86Xinput.c
> +++ b/hw/xfree86/common/xf86Xinput.c
> @@ -130,16 +130,16 @@ ProcessVelocityConfiguration(char* devname, pointer 
> list, DeviceVelocityPtr s){
>       xf86Msg(X_CONFIG, "%s: (accel) filter stage %i: %.2f ms\n",
>                  devname, i, 1.0f / (s->filters[i].rdecay));
>  
> -    tempf = xf86SetIntOption(list, "ConstantDeceleration", 1);
> -    if(tempf > 1.0){
> +    tempf = xf86SetRealOption(list, "ConstantDeceleration", 1.0);
> +    if(tempf != 1.0){
>          xf86Msg(X_CONFIG, "%s: (accel) constant deceleration by %.1f\n",
>                  devname, tempf);
>          s->const_acceleration = 1.0 / tempf;   /* set reciprocal deceleration
>                                                    alias acceleration */
>      }
>  
> -    tempf = xf86SetIntOption(list, "AdaptiveDeceleration", 1);
> -    if(tempf > 1.0){
> +    tempf = xf86SetRealOption(list, "AdaptiveDeceleration", 1.0);
> +    if(tempf != 1.0){
>          xf86Msg(X_CONFIG, "%s: (accel) adaptive deceleration by %.1f\n",
>                  devname, tempf);
>          s->min_acceleration = 1.0 / tempf;   /* set minimum acceleration */


Signed-off-by: Peter Hutterer <[EMAIL PROTECTED]>

Cheers,
  Peter
_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to