mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Always init at least one resolution mode
The one mode may be disabled and not configurable, but it's still more predictable to have one that none. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -569,6 +569,7 @@ ratbag_create_profile(struct ratbag_device *device,
|
||||
|
||||
for (i = 0; i < MAX_RESOLUTIONS; i++)
|
||||
ratbag_resolution_init(profile, i, 0, 0);
|
||||
profile->resolution.num_modes = 1;
|
||||
|
||||
assert(device->driver->read_profile);
|
||||
device->driver->read_profile(profile, index);
|
||||
|
||||
Reference in New Issue
Block a user