mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
It is a common pattern to have: ratbag_resolution_init(...) profile->resolution.modes[i].xxx = yyy; ratbag_resolution_set_cap(&profile->resolution.modes[i], zzz) So instead of dealing with the internal fields of profile/resolution/modes, just return the resolution that has been initialized. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>