mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Previously, we could get a min/max value but there was no guarantee that it any value in between would actually work on the device. Some devices have a discrete number of resolutions (e.g. 500, 1000, 2000, 2500), most others have at least a minimum step size (so 1234 isn't a valid dpi value). Change the min/max to a discrete list of which resolutions are supported. This allows a UI to adjust its interface dynamically - e.g. a combobox if there are only 3 resolutions or a slider if there are a million of them. This is a DBus API break Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>