mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 09:10:54 +00:00
commit
5c456ce109
@ -589,7 +589,7 @@ int32_t HgmFrameRateManager::GetExpectedFrameRate(const RSPropertyUnit unit, flo
|
||||
case RSPropertyUnit::RATIO_SCALE:
|
||||
return GetPreferredFps("scale", PixelToMM(velocity));
|
||||
case RSPropertyUnit::ANGLE_ROTATION:
|
||||
return GetPreferredFps("rotation", velocity);
|
||||
return GetPreferredFps("rotation", PixelToMM(velocity));
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
@ -601,6 +601,9 @@ int32_t HgmFrameRateManager::GetPreferredFps(const std::string& type, float velo
|
||||
if (!configData) {
|
||||
return 0;
|
||||
}
|
||||
if (ROSEN_EQ(velocity, 0.f)) {
|
||||
return 0;
|
||||
}
|
||||
const std::string settingMode = std::to_string(curRefreshRateMode_);
|
||||
if (configData->screenConfigs_.count(curScreenStrategyId_) &&
|
||||
configData->screenConfigs_[curScreenStrategyId_].count(settingMode) &&
|
||||
|
Loading…
Reference in New Issue
Block a user