Initialize mouse resolution to zero if converting from
OLD to NEW.
This commit is contained in:
parent
7fc02735f4
commit
60a35d3afd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170868
@ -1815,6 +1815,8 @@ psmioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td
|
||||
*/
|
||||
if (((old_mousemode_t *)addr)->resolution > 0)
|
||||
mode.resolution = -((old_mousemode_t *)addr)->resolution - 1;
|
||||
else
|
||||
mode.resolution = 0;
|
||||
mode.accelfactor = ((old_mousemode_t *)addr)->accelfactor;
|
||||
mode.level = -1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user