mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
implement resolution active set (#249)
Fixes #80 Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
committed by
Jente Hidskes
parent
9dcd2c6c05
commit
de3bb0e579
@@ -1141,9 +1141,15 @@ ratbag_resolution_is_active(const struct ratbag_resolution *resolution)
|
||||
LIBRATBAG_EXPORT enum ratbag_error_code
|
||||
ratbag_resolution_set_active(struct ratbag_resolution *resolution)
|
||||
{
|
||||
struct ratbag_profile *profile = resolution->profile;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < profile->resolution.num_modes; i++)
|
||||
profile->resolution.modes[i].is_active = false;
|
||||
|
||||
resolution->is_active = true;
|
||||
/* FIXME: call into the driver */
|
||||
return RATBAG_ERROR_IMPLEMENTATION;
|
||||
profile->dirty = true;
|
||||
return RATBAG_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user