chiark / gitweb /
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Ian Jackson [Sat, 23 Apr 2016 18:27:28 +0000 (19:27 +0100)]
Button zones: Remove inexplicable pad_with/2 offset
When button zones are in use, the code attempts to calculate which
zone the finger is in. The left and right edges of the zones are
calculated according the nths of pad_width, where n is the number of
zones.
These left and right sides are compared with `pos', and the zone is
the one where left<=pos<=right.
This would all be correct if pos were the touch's x coordinate.
However, inexplicably, it isn't: it has had pad_width/2 added.
The git history does not reveal an explanation for adding pad_width/2.
Removing it makes the button zones work.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Apr 2016 19:54:49 +0000 (20:54 +0100)]
Debugging: Print each touch's state bitmask in mtstate_output
The user is expected to decode the hex (with reference to the bit
numbers defined in mtstate.h).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Apr 2016 19:52:50 +0000 (20:52 +0100)]
common.h: bitmaps: Provide PRBITMASK
This is a printf format specifier, a la PRIx32 et al. This avoids us
having to write %#x explicitly, which would be annoying if bitmask_t
ever changed its type.
No use sites introduced in this commit, so no functional change yet.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Apr 2016 19:31:28 +0000 (20:31 +0100)]
mtrack-test.c: include <unistd.h>
Otherwise we get an implicit declaration warning about close().
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Apr 2016 19:30:24 +0000 (20:30 +0100)]
common.h: Add missing include of <mtdev-plumbing.h>
Otherwise we get an implicit declaration warning about mtdev_empty.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Apr 2016 17:23:36 +0000 (18:23 +0100)]
Abolish uses of %+d
(EE) BUG: triggered 'if (f[f_idx])'
(EE) BUG: ../../os/log.c:565 in vpnprintf()
(EE) Unsupported printf directive '+'
Ian Jackson [Sat, 23 Apr 2016 17:21:08 +0000 (18:21 +0100)]
DEBIAN/.GITIGNORE
Ian Jackson [Sat, 23 Apr 2016 20:20:56 +0000 (21:20 +0100)]
DH_AUTORECONF
Ian Jackson [Tue, 26 Apr 2016 19:40:04 +0000 (20:40 +0100)]
.gitignore: Add *~
In particular, although emacs generally doesn't generate ~ backup
files when working in a git tree, autoreconf does generate
config.h.in~, which should be ignored.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Nobuhiro Iwamatsu [Tue, 2 Jun 2015 05:04:28 +0000 (06:04 +0100)]
xf86-input-mtrack (0.3.1-1) unstable; urgency=medium
* Upload to unstable.
* Fix debian/copyright format.
# imported from the archive