1
0
forked from drath/libratbag

steelseries: default resolutions to 800/1600

The steelseries mice have 2 resolutions. The range/interval
is different per device. We cannot query the devices, so we
have to pick some defaults. Before we took the two first in
the list to be safe. It is a pretty bad default though. Using
800 and 1600 is supported by all known devices and seem as
more reasonable defaults.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2018-02-14 01:07:48 +01:00
committed by Peter Hutterer
parent ef7e6f6db5
commit f36b2dbce9

View File

@@ -176,8 +176,10 @@ steelseries_probe(struct ratbag_device *device)
(unsigned int *)dpilist->entries,
dpilist->nentries);
resolution->dpi_x = resolution->dpis[resolution->index];
resolution->dpi_y = resolution->dpis[resolution->index];
/* 800 and 1600 seem as reasonable defaults supported
* by all known devices. */
resolution->dpi_x = 800 * (resolution->index + 1);
resolution->dpi_y = 800 * (resolution->index + 1);
ratbag_resolution_set_report_rate_list(resolution, report_rates,
ARRAY_LENGTH(report_rates));