xfree86: remove obsolete code
remove a few lines which redo part of the pointer acceleration init. Properties is the way to go for them. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
97cb3cc28e
commit
7abb72c5c7
|
@ -208,24 +208,6 @@ ProcessVelocityConfiguration(DeviceIntPtr pDev, char* devname, pointer list,
|
||||||
s->average_accel);
|
s->average_accel);
|
||||||
|
|
||||||
s->reset_time = xf86SetIntOption(list, "VelocityReset", s->reset_time);
|
s->reset_time = xf86SetIntOption(list, "VelocityReset", s->reset_time);
|
||||||
|
|
||||||
tempf = xf86SetRealOption(list, "ExpectedRate", 0);
|
|
||||||
if(tempf > 0){
|
|
||||||
s->corr_mul = 1000.0 / tempf;
|
|
||||||
}else{
|
|
||||||
s->corr_mul = xf86SetRealOption(list, "VelocityScale", s->corr_mul);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* select profile by number */
|
|
||||||
tempi= xf86SetIntOption(list, "AccelerationProfile",
|
|
||||||
s->statistics.profile_number);
|
|
||||||
|
|
||||||
if(SetAccelerationProfile(s, tempi)){
|
|
||||||
xf86Msg(X_CONFIG, "%s: (accel) set acceleration profile %i\n", devname, tempi);
|
|
||||||
}else{
|
|
||||||
xf86Msg(X_CONFIG, "%s: (accel) acceleration profile %i is unknown\n",
|
|
||||||
devname, tempi);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user