mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 20:48:13 +02:00
frontend: Fix superficial bug in VRR handling
We should just return 0 on success, not return some enum with a value that happens to be initialized to something that resolves to 0. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
978052f9ed
commit
8872d5ee14
1 changed files with 1 additions and 1 deletions
|
|
@ -2006,7 +2006,7 @@ wet_output_set_vrr_mode(struct weston_output *output,
|
|||
|
||||
weston_config_section_get_string(section, "vrr-mode", &vrr_str, NULL);
|
||||
if (!vrr_str)
|
||||
return vrr_mode;
|
||||
return 0;
|
||||
|
||||
entry = weston_enum_map_find_name(vrr_modes, vrr_str);
|
||||
if (!entry) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue