mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
Merge branch 'output-adaptive-sync' into 'master'
output: Replace wlr_output_adaptive_sync_status with bool See merge request wlroots/wlroots!4222
This commit is contained in:
commit
8fa643f951
8 changed files with 15 additions and 32 deletions
|
|
@ -532,12 +532,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