!10075 屏幕信息增加屏幕ppi

Merge pull request !10075 from dock_yu/master
This commit is contained in:
openharmony_ci 2024-10-29 12:07:21 +00:00 committed by Gitee
commit 8010d89dc3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -222,7 +222,8 @@ void SceneInputManager::ConstructDisplayInfos(std::vector<MMI::DisplayInfo>& dis
static_cast<MMI::DisplayMode>(displayMode)),
.displayDirection = displayRotation,
.displayMode = static_cast<MMI::DisplayMode>(displayMode),
.transform = transformData};
.transform = transformData,
.ppi = screenProperty.GetXDpi()};
displayInfos.emplace_back(displayInfo);
}
}