From f27c0b44b882f7a837906e5b3376ad035cb51445 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 19 Feb 2018 10:43:25 +1300 Subject: Remove usec_to_msec from public API --- backend/libinput/backend.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/libinput') diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c index 71fe0d93..e2a1165f 100644 --- a/backend/libinput/backend.c +++ b/backend/libinput/backend.c @@ -189,3 +189,7 @@ struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device * struct wlr_libinput_input_device *dev = (struct wlr_libinput_input_device *)_dev; return dev->handle; } + +uint32_t usec_to_msec(uint64_t usec) { + return (uint32_t)(usec / 1000); +} -- cgit v1.2.3