forked from drath/libratbag
Add a helper function to init a resolution mode
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -568,7 +568,7 @@ ratbag_create_profile(struct ratbag_device *device,
|
||||
list_init(&profile->buttons);
|
||||
|
||||
for (i = 0; i < MAX_RESOLUTIONS; i++)
|
||||
profile->resolution.modes[i].profile = profile;
|
||||
ratbag_resolution_init(profile, i, 0, 0);
|
||||
|
||||
assert(device->driver->read_profile);
|
||||
device->driver->read_profile(profile, index);
|
||||
|
||||
Reference in New Issue
Block a user