mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
output: Replace wlr_output_adaptive_sync_status with bool
This commit is contained in:
parent
28b03c3220
commit
6d8f3babe4
8 changed files with 15 additions and 32 deletions
|
|
@ -125,9 +125,7 @@ static bool legacy_crtc_commit(struct wlr_drm_connector *conn,
|
|||
"drmModeObjectSetProperty(VRR_ENABLED) failed");
|
||||
return false;
|
||||
}
|
||||
output->adaptive_sync_status = state->base->adaptive_sync_enabled ?
|
||||
WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED :
|
||||
WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED;
|
||||
output->adaptive_sync_enabled = state->base->adaptive_sync_enabled;
|
||||
wlr_drm_conn_log(conn, WLR_DEBUG, "VRR %s",
|
||||
state->base->adaptive_sync_enabled ? "enabled" : "disabled");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue