Change the directions bitmask to a uin32_t

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2016-12-15 12:16:28 +10:00
parent 577422f692
commit ab42022253
3 changed files with 4 additions and 4 deletions

View file

@ -327,7 +327,7 @@ tp_gesture_handle_state_unknown(struct tp_dispatch *tp, uint64_t time)
{
struct tp_touch *first = tp->gesture.touches[0],
*second = tp->gesture.touches[1];
int dir1, dir2;
uint32_t dir1, dir2;
int yres = tp->device->abs.absinfo_y->resolution;
int vert_distance;

View file

@ -135,7 +135,7 @@ filter_get_type(struct motion_filter *filter)
struct pointer_tracker {
struct normalized_coords delta; /* delta to most recent event */
uint64_t time; /* us */
int dir;
uint32_t dir;
};
struct pointer_accelerator {

View file

@ -700,10 +700,10 @@ enum directions {
UNDEFINED_DIRECTION = 0xff
};
static inline int
static inline uint32_t
normalized_get_direction(struct normalized_coords norm)
{
int dir = UNDEFINED_DIRECTION;
uint32_t dir = UNDEFINED_DIRECTION;
int d1, d2;
double r;