diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-05-14 01:10:17 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-05-14 01:41:39 +0200 |
| commit | 2b271ed5348daec2bcf90b83da47781e2d8b964c (patch) | |
| tree | 1828f251cf4b7d4f6a66a6af67c2681998f2483e /src/gestures.c | |
| parent | f02210172efc6bfc05c4598c14e1268d2828097e (diff) | |
janitor: Move min/max and dist functions up to common.h
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/gestures.c')
| -rw-r--r-- | src/gestures.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gestures.c b/src/gestures.c index f44e6ab..a0ef5d4 100644 --- a/src/gestures.c +++ b/src/gestures.c | |||
| @@ -31,8 +31,6 @@ | |||
| 31 | static const int FINGER_ATTACK_MS = 70; | 31 | static const int FINGER_ATTACK_MS = 70; |
| 32 | static const int FINGER_DECAY_MS = 120; | 32 | static const int FINGER_DECAY_MS = 120; |
| 33 | 33 | ||
| 34 | static inline int maxval(int x, int y) { return x > y ? x : y; } | ||
| 35 | |||
| 36 | inline int dxval(const struct FingerState *a, const struct FingerState *b) | 34 | inline int dxval(const struct FingerState *a, const struct FingerState *b) |
| 37 | { | 35 | { |
| 38 | return a->hw.position_x - b->hw.position_x; | 36 | return a->hw.position_x - b->hw.position_x; |
