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
|
|
@ -553,12 +553,9 @@ static uint32_t output_compare_state(struct wlr_output *output,
|
|||
output->transform == state->transform) {
|
||||
fields |= WLR_OUTPUT_STATE_TRANSFORM;
|
||||
}
|
||||
if (state->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED) {
|
||||
bool enabled =
|
||||
output->adaptive_sync_status != WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED;
|
||||
if (enabled == state->adaptive_sync_enabled) {
|
||||
fields |= WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED;
|
||||
}
|
||||
if (state->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED &&
|
||||
output->adaptive_sync_enabled != state->adaptive_sync_enabled) {
|
||||
fields |= WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED;
|
||||
}
|
||||
if ((state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) &&
|
||||
output->render_format == state->render_format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue