From 499414be221589e46ad56e97e2ad1f6566ed693c Mon Sep 17 00:00:00 2001 From: Haryslee Date: Sat, 1 Mar 2025 11:09:23 +0800 Subject: [PATCH] fix window rect scale Signed-off-by: Haryslee --- .../sa/sa_main/sec_comp_info_helper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp b/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp index 245d9eb..e7f6a1c 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp @@ -46,6 +46,9 @@ void SecCompInfoHelper::AdjustSecCompRect(SecCompBase* comp, float scale) SC_LOG_DEBUG(LABEL, "After adjust x %{public}f, y %{public}f, width %{public}f, height %{public}f", comp->rect_.x_, comp->rect_.y_, comp->rect_.width_, comp->rect_.height_); + + comp->windowRect_.width_ *= scale; + comp->windowRect_.height_ *= scale; } SecCompBase* SecCompInfoHelper::ParseComponent(SecCompType type, const nlohmann::json& jsonComponent) -- Gitee