mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-12-17 20:04:27 +00:00
!7464 修复frameRateLinkerEnable的默认值为无效帧率
Merge pull request !7464 from Klein-CK/wm_0716
This commit is contained in:
commit
6473b72286
@ -105,8 +105,8 @@ void VsyncStation::SetFrameRateLinkerEnable(bool enabled)
|
||||
FrameRateRange range = {0, RANGE_MAX_REFRESHRATE, 0};
|
||||
WLOGI("VsyncStation::FlushFrameRateImme %{public}d, linkerID = %{public}" PRIu64,
|
||||
range.preferred_, frameRateLinker_->GetId());
|
||||
frameRateLinker_->UpdateFrameRateRange(range, true);
|
||||
frameRateLinker_->UpdateFrameRateRangeImme(range, true);
|
||||
frameRateLinker_->UpdateFrameRateRange(range);
|
||||
frameRateLinker_->UpdateFrameRateRangeImme(range);
|
||||
}
|
||||
frameRateLinker_->SetEnable(enabled);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user