diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/grail-api.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/grail-api.c b/src/grail-api.c index 3aca75d..a584e23 100644 --- a/src/grail-api.c +++ b/src/grail-api.c | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <fcntl.h> | 29 | #include <fcntl.h> |
| 30 | #include <malloc.h> | 30 | #include <malloc.h> |
| 31 | #include <errno.h> | 31 | #include <errno.h> |
| 32 | #include <stdlib.h> | ||
| 32 | 33 | ||
| 33 | #define DIM_FRAMES 100 | 34 | #define DIM_FRAMES 100 |
| 34 | #define FRAME_RATE 100 | 35 | #define FRAME_RATE 100 |
| @@ -41,8 +42,6 @@ void grail_filter_abs_events(struct grail *ge, int usage) | |||
| 41 | 42 | ||
| 42 | static void init_impl(struct grail_impl *x) | 43 | static void init_impl(struct grail_impl *x) |
| 43 | { | 44 | { |
| 44 | int i; | ||
| 45 | |||
| 46 | if (evemu_has_event(x->evemu, EV_ABS, ABS_X)) { | 45 | if (evemu_has_event(x->evemu, EV_ABS, ABS_X)) { |
| 47 | x->emin_x = evemu_get_abs_minimum(x->evemu, ABS_X); | 46 | x->emin_x = evemu_get_abs_minimum(x->evemu, ABS_X); |
| 48 | x->emin_y = evemu_get_abs_minimum(x->evemu, ABS_Y); | 47 | x->emin_y = evemu_get_abs_minimum(x->evemu, ABS_Y); |
| @@ -120,7 +119,6 @@ int grail_open(struct grail *ge, int fd) | |||
| 120 | void grail_close(struct grail *ge, int fd) | 119 | void grail_close(struct grail *ge, int fd) |
| 121 | { | 120 | { |
| 122 | struct grail_impl *x = ge->impl; | 121 | struct grail_impl *x = ge->impl; |
| 123 | void *status; | ||
| 124 | gru_destroy(ge); | 122 | gru_destroy(ge); |
| 125 | gin_destroy(ge); | 123 | gin_destroy(ge); |
| 126 | utouch_frame_delete_engine(x->fh); | 124 | utouch_frame_delete_engine(x->fh); |
