From c022d542b10586decb5da32bf62398c65b149322 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 24 Aug 2015 17:08:00 +1000 Subject: [PATCH] driver-hidpp10: fill in the current DPI Should be read on-the-fly here, but until hidpp10 is refactored, this will do. Signed-off-by: Peter Hutterer --- src/driver-hidpp10.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index 616f202d..30b338e1 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -85,6 +85,15 @@ hidpp10drv_set_current_profile(struct ratbag_device *device, unsigned int index) static void hidpp10drv_read_profile(struct ratbag_profile *profile, unsigned int index) { + struct ratbag_device *device = profile->device; + struct hidpp10drv_data *drv_data; + struct hidpp10_device *hidpp10; + + drv_data = ratbag_get_drv_data(device); + hidpp10 = &drv_data->dev; + + /* FIXME: read this from device */ + profile->current_dpi = hidpp10->xres; } static int