mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-18 16:24:27 -04:00
Clean codestyle issue. Add and modify *refreshRate var/api to replace *freshRate
Signed-off-by: shiyueeee <nieshiyue@huawei.com> Change-Id: I8acc9c8fac0e9f08551476d200f23ed8f52beb05
This commit is contained in:
@@ -300,7 +300,7 @@ bool AbstractScreenController::FillAbstractScreen(sptr<AbstractScreen>& absScree
|
||||
sptr<SupportedScreenModes> info = new SupportedScreenModes();
|
||||
info->width_ = static_cast<uint32_t>(rsScreenModeInfo.GetScreenWidth());
|
||||
info->height_ = static_cast<uint32_t>(rsScreenModeInfo.GetScreenHeight());
|
||||
info->freshRate_ = rsScreenModeInfo.GetScreenFreshRate();
|
||||
info->refreshRate_ = rsScreenModeInfo.GetScreenFreshRate();
|
||||
absScreen->modes_.push_back(info);
|
||||
WLOGD("fill screen w/h:%{public}d/%{public}d", info->width_, info->height_);
|
||||
}
|
||||
@@ -449,7 +449,7 @@ ScreenId AbstractScreenController::CreateVirtualScreen(VirtualScreenOption optio
|
||||
info->height_ = option.height_;
|
||||
auto defaultScreen = GetAbstractScreen(GetDefaultAbstractScreenId());
|
||||
if (defaultScreen != nullptr && defaultScreen->GetActiveScreenMode() != nullptr) {
|
||||
info->freshRate_ = defaultScreen->GetActiveScreenMode()->freshRate_;
|
||||
info->refreshRate_ = defaultScreen->GetActiveScreenMode()->refreshRate_;
|
||||
}
|
||||
absScreen->modes_.push_back(info);
|
||||
absScreen->activeIdx_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user